
Thanks for the answer.
How do I define which mails I need to delete?
For example if it's all mails that contain a certain subject og a certain
sender?
(basically, I'm not that much into perl, which is why aI wanted to do it
though a php-script directly in the database)
Med venlig hilsen / Best regards
Anders Hinding
----- Original Message -----
From: "Guenther Rasch"
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
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