Automatically set tickets "dead" by conditiion

Hello all,

we have a global SA-based spamgateway, which tags all Spam-mails with
"SPAM" in the subject but however does not delete them itself for
technical reasons.

Is it possible to tell R’T somehow, to automatically set newly created
tickets by email, which have “SPAM” in the subject to status “dead”?

I was not able to find any Scrip-condition or somewhat to handle this.

However, we’re still using r’t 2…

Thanks in advance,

Dennis Breithaupt
pelion XII AG

if you do a script with:
on create
custom action
use template blank

with the code of
prepare: return 1;
commit:
if($self->TicketObj->Subject~=“/regexgoeshere/”){
$self->TicketObj->SetStatus(‘deleted’);
}
return 1;

NOTE im very new to perl and im pretty sure this would work but am
not positive. It should get you started tho.

-Karl PIetriOn Tue, 20 Jul 2004 09:06:14 +0200, Dennis Breithaupt d.breithaupt@pelion12.de wrote:

Hello all,

we have a global SA-based spamgateway, which tags all Spam-mails with
SPAM” in the subject but however does not delete them itself for
technical reasons.

Is it possible to tell R’T somehow, to automatically set newly created
tickets by email, which have “SPAM” in the subject to status “dead”?

I was not able to find any Scrip-condition or somewhat to handle this.

However, we’re still using r’t 2…

Thanks in advance,

Dennis Breithaupt
pelion XII AG


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com