
Subject: Re: [otrs] Deleting trashmail from OTRS
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 => '
', State => ['new','open'], #mails state new + open Locks => ['lock','unlock'], New => { Delete => 1, }, }, GenericAgent will now delete all you mails located in
. You can also choose your spam-queue as . Guenther
but isnt it neccessary in this way to move the spam mails into the "spam"-queue by hand (1 click per mail)? Flo
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