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
<[EMAIL PROTECTED]>, "Forrest
Blount"
<[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com