Disable autoreply to one email address

Hi Folks

I’d like to supress the following scrips to a specific requestor
On Create Autoreply To Requestors with template Autoreply
and
On Resolve Notify Requestors with template Resolved

I took a guess from the wiki [[WriteCustomCondition]] and tried with

my $ticket = $self->TicketObj;
if ($ticket->RequestorAddress =~ /gmail.com/ ) {
return(undef);
}
else {
return(1);
}

into the /Admin/Global/Scrip.html?id=3&Queue=0 “Custom Conditions” box

but I kept getting the autoreplies from both gmail and non-gmail addresses.

Is there something stupid I’ve missed? (new to RT)

Andrew

Andrew Elwell, System Administrator EPCC
Tel 0131 445 7833 (ACF Building)
Tel 0131 650 5023 (Rm 3309, JCMB)