New scrip to send e-mail when Spam ticket is deleted

Dear List,

I have created a basic template which lists the ticket subject, saying it has
been deleted (for when a spam e-mail gets deleted, that wasn’t caught by
Spamassassin). I want to create a scrip to trigger when I delete it and
notify the AdminCCs.

This is all fine and I can see that I need to create a “User Defined” action,
as there is no listing for a ticket being deleted.

What code do I reference for this, or am I missing an existing action?

Thanks.

Kind Regards,

Gavin Henry.
Managing Director.

T +44 (0) 1224 279484
M +44 (0) 7930 323266
F +44 (0) 1224 742001
E ghenry@suretecsystems.com

Open Source. Open Solutions™.

http://www.suretecsystems.com/

Gavin Henry wrote:

Dear List,

I have created a basic template which lists the ticket subject, saying it has
been deleted (for when a spam e-mail gets deleted, that wasn’t caught by
Spamassassin). I want to create a scrip to trigger when I delete it and
notify the AdminCCs.

This is all fine and I can see that I need to create a “User Defined” action,
as there is no listing for a ticket being deleted.
You need user defined condition, it should be something like:
<<<
return 1 if lc $self->TicketObj->Status eq ‘deleted’;
return 0;

Look on the wiki! There is more examples.