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 <jke...@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.