Hi Anders,

you do not need a php-script, otrs can do it for you:

edit $OTRS_HOME/Kernel/Config/GenericAgent.pm

you must define a new job:

'delete' => {
        Queue => '<your_bin_queue>',
        State => ['new','open'],       #mails state new + open
        Locks => ['lock','unlock'],
        New => {
                Delete => 1,
                },              
        },



GenericAgent will now delete all you mails located in <your_bin_queue>.
You can also choose your spam-queue as <your_bin_queue>.

Guenther

Anders Hinding schrieb:
Hello,

first a thank you to Florian Gattung for the suggestion as to how to close
all the viramails we have recieved.

Now I have another question.

We have heaps of mails in the OTRS-system that really is spam and mails that
we dont need in there, simply junk that fills up the database.

Does anyone know a script (perhaps in php) that can delete all those mails,
so they wont be in the system at all anymore? (having around 120000 sobig
related mails and lots of other spam).

Thanks in advance.


Med venlig hilsen / Best regards


Anders Hinding

_______________________________________________
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




_______________________________________________
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

Reply via email to