Preventing auto-response for a particular requestor

I’m trying to tweak RT 3.0.11 to prevent it sending an auto-response
message to a particular requestor. Specifically, we’ve gotten into a
ticket system loop with another party and I want to make sure that any
messages from their ticketing system don’t generate auto-responses on ours.

I’ve tried variations on the following in the Custom Condition of the ‘On
Create’ Scrip without any success:

{
if($self->TicketObj->RequestorAddresses() =~ “email@address”) {
return(undef);
} else {
return(1);
}

I think I’m missing something obvious, what is it?

-Ronan

This email has been scanned by the MessageLabs Email Security System.
For more information please visit Email Security

{
if($self->TicketObj->RequestorAddresses() =~ “email@address”) {
return(undef);
} else {
return(1);
}

I think I’m missing something obvious, what is it?

The right hand side of the =~ operator is an regular expression, not a
string. Also, “@” is a special character in a Perl double-quoted string
(it does an array interpolation), and regular expressions are usually
subjected to the same sort of parsing as double-quoted strings. Finally
remember that “.” is a special character in regular expressions. So you
probably want something more like

if($self->TicketObj->RequestorAddresses() =~ /email\@address\.example/)

or

if($self->TicketObj->RequestorAddresses() eq "email\@address.example")

or

if($self->TicketObj->RequestorAddresses() eq 'email@address.example')

–apb (Alan Barrett)