[rt-users] Squelching autoreply to specific requestors
Howard Jones
howie at thingy.com
Mon Oct 12 04:49:36 EDT 2009
On 09/10/2009 19:36, Coco, Alex wrote:
> Hello,
>
> I've done my googling, digging through perldocs, the wiki, the list
> archive, the RT Essentials book but haven't figured out how to do
> this. I want to send auto-replies to all users when new tickets are
> created except for a few specific users who have requested NOT to
> receive such responses. I figured the easiest way to do this was to
> add a custom action preparation code to the default autoreply on
> create scrip checking the requestor email like so:
I have a global scrip to do this:
Condition: User Defined
Action: Autoreply to Requestors
Template: Autoreply
State: TransactionCreate
and the condition is:
my @exceptionList = (
'support at netapp.com'
);
my $transactionType = $self->TransactionObj->Type;
my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') {
for (@exceptionList) {
return if ($ticketRequestor eq lc("$_"));
}
# wildcard matches
return if ($ticketRequestor =~ m/^mailer\-daemon\@/i);
return if ($ticketRequestor =~ m/^postmaster\@/i);
return if ($ticketRequestor =~ m/^noreply\@/i);
return if ($ticketRequestor =~ m/\@sendyourfeedback\.com/i);
return 1;
}
return;
More information about the rt-users
mailing list