[rt-users] Autoreply email addresses excluded on create
Kevin Falcone
falcone at bestpractical.com
Wed Apr 6 22:17:34 EDT 2011
On Wed, Apr 06, 2011 at 09:48:34PM -0400, Peterson, Jeff wrote:
> I have been using RT a little over a year and have multiple systems that automatically create
> tickets but I don't want these tickets to autoreply to the creation of the tickets. I Have
> looked at several examples from the wiki examples and none of them seem to work. Here are a
> few examples I have tried. I put each of them in scrip #3 On Create Autoreply in the custom
> condition field. No matter which code I use an autoreply is generated. Any help would be
> appreciated. Thanks in advance!
Are you changing the condition from On Create to User Defined?
Also, you can always go edit the user account and leave the Username
set to userid at domain.com but blank their email address out and RT will
never send them email.
-kevin
> #1 example
>
> if $self->TicketObj->RequestorAddresses =~ /userid\@domain\.com/i){
>
> return 0;
>
> }
>
> else{
>
> return 1;
>
> }
>
>
>
> I have tried return 0 and undef.
>
>
>
> #2 example
>
> my @exceptionList = ('joe at goblow.com',
>
> 'fred at quarry.com',
>
> 'scooby at mysterymachine.com');
>
>
>
> my $transactionType = $self->TransactionObj->Type;
>
> my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
>
>
>
> if ($transactionType eq 'Create') {
>
> return if grep { $ticketRequestor eq lc($_) } @exceptionList;
>
> return 1;
>
> }
>
> return;
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110406/a4eb89a9/attachment.sig>
More information about the rt-users
mailing list