[rt-users] Script to Squelch Queue AdminCc's on Ticket Creation

Ruslan Zakirov ruz at bestpractical.com
Sun Apr 14 14:41:19 EDT 2013


Extend RT::Action::Notify to support "Notify ticket adminccs". I think it
was discussed recently.


On Sat, Apr 13, 2013 at 3:53 AM, John Kelsh <jkelsh at netspot.com.au> wrote:

> Alternately, is there any other way to stop a subset of the new ticket
> notifications being sent to Queue AdminCc's?
>
> Thanks,
>
>
> On 11/04/13 12:45 AM, John Kelsh wrote:
>
>> Hi All,
>>
>> I've setup the following scrip to squelch Queue AdminCc's where the
>> requestor matches a pattern. The scrip seems to be functioning correctly
>> yet correspondence is still being sent to Queue AdminCc's.
>>
>> Is anyone able to shed some light on where I'm going wrong here.
>>
>> Thanks,
>>
>>
>> my $requestor = $self->TicketObj->**RequestorAddresses;
>> my $pattern = 'somepattern';
>>
>> if ( $requestor =~ m/$pattern/ ) {
>>      $RT::Logger->info( 'Requestor Address: '.$requestor.' matches
>> regex: '.$pattern.' squelching output to AdminCc\'s' );
>>      my @admincc = split( ', ',
>> $self->TicketObj->QueueObj->**AdminCcAddresses );
>>
>>      foreach ( @admincc ) {
>>          $self->TicketObj->**SquelchMailTo( $_ );
>>          $RT::Logger->info( 'Squelched email to: '.$_ );
>>      }
>> }
>>
>> return 1;
>>
>
>


-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130414/36485159/attachment.htm>


More information about the rt-users mailing list