[rt-users] Triggering scrips on add/delete Ccs

Tim Wilson twilson at buffalo.k12.mn.us
Thu Oct 18 17:15:34 EDT 2007


>>> On Thu, Oct 18, 2007 at  3:35 PM, in message
<e99ac1500710181335l2510db86h5afe1199eb6b1acc at mail.gmail.com>, "Forrest Blount"
<forrestarthur at gmail.com> wrote: 
> These should be what you're looking for:
> 
> TransactionObj- >Type- >AddWatcher
> or TransactionObj- >Type- >DelWatcher

That helps. I found that this will trigger when any watchers are added:

return undef unless ( $self->TransactionObj->Type eq "AddWatcher" );
return 1;

I haven't been able to figure out how to specify that I'm only interested in new Ccs, not any old watcher. This doesn't work:

return undef unless ( $self->TransactionObj->Type->AddWatcher->Type eq "Cc" );
return 1;

Neither does this:

return undef unless ( $self->TransactionObj->Type->AddWatcher(Type=>"Cc" );
return 1;

-Tim


-- 
Tim Wilson, Director of Technology
Buffalo-Hanover-Montrose Schools
214 1st Ave NE   Buffalo, MN  55313
ph: 763.682.8740  fax: 763.682.8743  http://www.buffalo.k12.mn.us








More information about the rt-users mailing list