Hi all:

 

I’m running OTRS and changed the contents of GenericAgent.pm to

 

%Jobs = (

  # insert your jobs (see Kernel/Config/GenericAgent.pm.examples)

 

   # --

   # [name of job] -> close and delete all tickets in queue Junk

   # --

   '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

      # which should be changed!)

      New => {

        # DELETE!

        Delete => 1,

     },

   },

 

Because I want to delete the emails in the Junk default queue.

 

How does the GenericAgent.pm runs ?

 

Is it running by default ? Because none of the emails in the Junk queue are deleted.

 

Thanks

 

Luis Vazquez