[rt-users] Automatically set tickets "dead" by conditiion

Barnacle Bob barnaclebob at gmail.com
Tue Jul 20 08:05:02 EDT 2004


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 PIetri


On Tue, 20 Jul 2004 09:06:14 +0200, Dennis Breithaupt
<d.breithaupt at 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
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
>



More information about the rt-users mailing list