[rt-users] Enabling CC to task owner only
Andrew Chapman
AChapman at pembroke.sa.edu.au
Wed Aug 2 21:30:13 EDT 2006
Actually, I will modify that comment slightly. The effect was to stop
RT from sending mail out, so it appeared to break something.
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Andrew
Chapman
Sent: Thursday, 3 August 2006 10:34 AM
To: rt-users at lists.bestpractical.com
Subject: RE: [rt-users] Enabling CC to task owner only
Doesn't work me, I'm afraid. Below are the edits I tried in Notify.pm
#Strip the sender out of the To, Cc and AdminCc and set the
# recipients fields used to build the message by the superclass.
# unless a flag is set
if ($RT::NotifyActor or ($creator eq 'boss at mydomain.com')) {
@{ $self->{'To'} } = @To;
@{ $self->{'Cc'} } = @Cc;
@{ $self->{'Bcc'} } = @Bcc;
}
else {
# @{ $self->{'To'} } = grep ( lc $_ ne lc $creator, @To );
# @{ $self->{'Cc'} } = grep ( lc $_ ne lc $creator, @Cc );
# @{ $self->{'Bcc'} } = grep ( lc $_ ne lc $creator, @Bcc );
}
First I tried adding the $creator eq line you suggested, then I tried
commenting out the elements in the else part of the statement. But there
appeared to be no effect.
The Notify.pm file is located at opt/rt3/lib/RT/Action/Notify.pm
-----Original Message-----
THis is controlled in lib/RT/Action/Notify.pm. The method is
SetRecipients. Turn $NotifyActor off and make the if look something
like:
if ( $RT::NotifyActor or $creator eq 'boss.address at xyz.com' ) {
Always test outside of production. :)
_______________________________________________
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
More information about the rt-users
mailing list