Ok. I attempted to adapt the code in the link you directed me to, but am unsuccessful. 
I'm sure I'm botching something simple, but I just don't see it.

Below is the tail end of my GenericAgent.pl file:

    # --
    # delete ticket
    # --
    if ($Jobs{$Job}->{New}->{Delete}) {
        print "  - delete ticket_id $TicketID\n";
        $CommonObject{LogObject}->Log(
            Priority => 'notice',
            Message => "Delete Ticket [$TicketNumber], TicketID [$TicketID].",
        );
        $CommonObject{TicketObject}->DeleteTicket(
            UserID => $UserIDOfGenericAgent, 
            TicketID => $TicketID,
        );
    }
   # --
   # [name of job] -> close and delete all tickets in queue delete
   # --
   'junk' => {
      # get all tickets with this properties  
      Queue => 'junk',
      States => ['new', 'open'],
      Locks => ['unlock'],
      # new ticket properties (no option is required, use just the options
      # witch should be changed!)
      New => {
        # DELETE!
        Delete => 1,
     },
   },



}
# --


Is there an obvious error?


I really appreciate all your help!

Stefan

-----Original Message-----
From: Robert Kehl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 6:51 PM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] Junk queue deletion

On Wednesday, March 10, 2004 4:31 PM
Stefan Testa <[EMAIL PROTECTED]> wrote:
> We currently get a lot of spam sent to our OTRS system so I have just
> been telling everyone to move it into the "junk" queue. How do I go
> about deleting all of this junk?

The GenericAgent is meant for performing this. See
http://doc.otrs.org/1.2/en/html/generic-agent.html
and
http://doc.otrs.org/1.2/en/html/generic-agent-example.html#AEN1040

GA will get executed  via the Cron jobs. See
http://doc.otrs.org/1.2/en/html/cronjob.html

> If there is a better way to go about doing this, please let me know.

You're on track already.

hth,

Robert Kehl

-- 
((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
         http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting f�r Ihr OTRS System?
=> http://www.otrs.de/

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting f�r Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to