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

Gene LeDuc gleduc at mail.sdsu.edu
Thu Oct 18 17:25:28 EDT 2007


Try
   return $self->TransactionObj->Type eq "AddWatcher" && 
$self->TransactionObj->Field eq "Cc";

At 02:15 PM 10/18/2007, Tim Wilson wrote:
> >>> 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
>
>
>
>
>
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>Community help: http://wiki.bestpractical.com
>Commercial support: sales at bestpractical.com
>
>
>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>Buy a copy at http://rtbook.bestpractical.com


-- 
Gene LeDuc, GSEC
Security Analyst
San Diego State University 




More information about the rt-users mailing list