Enabling CC to task owner only

I have recently setup RT and it is all working quite nicely so far,
however the IT Manager likes to have his comments and replies CCd to
himself. RT was ignoring these CCs as per its defaults, so I changed the
Config to:

Set($NotifyActor, 1);

But of course now we are all by default getting CCs of our emails, when
only one person wants them. Is there a way to enable CCs to self by
typing one’s own address into the CC address box, so the boss can type
his address in and get his replies but the rest of us can happily not? I
saw an earlier fix for RT v 2, I think, which involved editing the file
bc_notify.pm, but this file does not appear to exist in the version of
RT I am using (v.3.4.5).

I have recently setup RT and it is all working quite nicely so far,
however the IT Manager likes to have his comments and replies CCd to
himself. RT was ignoring these CCs as per its defaults, so I changed the
Config to:

Set($NotifyActor, 1);

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@xyz.com’ ) {

Always test outside of production. :slight_smile:

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@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@xyz.com’ ) {

Always test outside of production. :slight_smile:

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@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Andrew
Chapman
Sent: Thursday, 3 August 2006 10:34 AM
To: rt-users@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@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@xyz.com’ ) {

Always test outside of production. :slight_smile:

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Are you matching the case of your bosses e-mail address?
You might want to lc $creator.On Thu, Aug 03, 2006 at 11:00:13AM +0930, Andrew Chapman wrote:

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@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Andrew
Chapman
Sent: Thursday, 3 August 2006 10:34 AM
To: rt-users@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@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@xyz.com’ ) {

Always test outside of production. :slight_smile:


The rt-users Archives

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com