[rt-users] To NotifyActor or not to NotifyActor ...

Jerrad Pierce jpierce at cambridgeenergyalliance.org
Wed May 19 11:04:34 EDT 2010


Yeah, my bad.

On Correspond Auto-take by AdminCc
Action:

## based on http://wiki.bestpractical.com/view/AutoSetOwnerIfAdminCc
my $Actor = $self->TransactionObj->Creator;
my $Queue = $self->TicketObj->QueueObj;

return 1 if $Actor == $RT::SystemUser->id;
return 1 unless $self->TicketObj->Owner == $RT::Nobody->id;

return 1 unless $Queue->IsWatcher(Type => 'AdminCc', PrincipalId => $Actor);
my($status, $msg) = $self->TicketObj->SetOwner( $Actor );
unless( $status ) {
 $RT::Logger->warning( "Can't set ticket owner to $Actor: $msg" );
 return undef;
}
return 1;
-- 
Cambridge Energy Alliance: Save money. Save the planet.



More information about the rt-users mailing list