FW: Cron <otrs@server> $HOME/bin/GenericAgent.pl >> /dev/null

Hi all,
I received the following e-mail via cron today. It seems to occur whenever I
put a ticket into our Spam queue (which is set up with GenericAgent.pl to
delete messages) that hasn't been closed (I think).
Any ideas on how to debug/fix it?
Thanks,
Paul
-----Original Message-----
From: Cron Daemon
Sent: Saturday, May 10, 2003 9:20 PM
To: root
Subject: Cron

Hi Paul, On Sun, May 11, 2003 at 10:36:43AM -0400, Paul wrote:
I received the following e-mail via cron today. It seems to occur whenever I put a ticket into our Spam queue (which is set up with GenericAgent.pl to delete messages) that hasn't been closed (I think).
Any ideas on how to debug/fix it?
Can I have the part of Kernel/Config/GenericAgent.pm for this job? Thanks!
Thanks, Paul
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "There are two major products that come out of Berkeley: LSD and Unix. We don't believe this to be a coincidence." -- Jeremy S. Anderson

Hi Martin,
Can I have the part of Kernel/Config/GenericAgent.pm for this job?
# -- # [name of job] -> close all tickets in queue spam # -- 'close spam' => { # get all tickets with these properties Queue => 'Spam', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # new queue Queue => 'Spam', # possible states (closed successful|closed unsuccessful|open|new|removed) State => 'closed successful', # new ticket owner (if needed) Owner => 'development', # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # DELETE! Delete => 1, }, }, );

Hi Paul, that's a little bit much, 3 jobs to delete all ticket from the spam queue! Just use this one: [...] # delete open tickets from spam queue 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties New => { # DELETE! Delete => 1, }, }, [...] Thanks all! .-) Do you get the cron-perl-warning anymore? Martini On Tue, May 13, 2003 at 11:28:18AM -0400, Paul wrote:
Can I have the part of Kernel/Config/GenericAgent.pm for this job?
# -- # [name of job] -> close all tickets in queue spam # -- 'close spam' => { # get all tickets with these properties Queue => 'Spam', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # new queue Queue => 'Spam', # possible states (closed successful|closed unsuccessful|open|new|removed) State => 'closed successful', # new ticket owner (if needed) Owner => 'development', # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], # if you want to add a Note Note => { From => 'GenericAgent', Subject => 'spam!', Body => 'Closed by GenericAgent.pl because it is spam!', Delete => 1, }, }, }, # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'spam', States => ['closed successful'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # DELETE! Delete => 1, }, }, );
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Perfection is our goal, excellence will be tolerated. -- J. Yahl

Hi Martin,
that's a little bit much, 3 jobs to delete all ticket from the spam queue!
Just use this one:
<snip>
Do you get the cron-perl-warning anymore?
That seems to have corrected the problem, although for some reason I had to change the order of the ticket states. It didn't seem to like 'open' following 'new'. Thanks for the help! Paul
participants (2)
-
Martin Edenhofer
-
Paul