Re: [rt-users] Enabling CC to task owner only

2006-08-03 Thread Todd Chapman
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: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 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 '[EMAIL PROTECTED]')) {
 @{ $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 '[EMAIL PROTECTED]' ) {
 
 
 Always test outside of production. :)
 
 
 ___
 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
 ___
 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
___
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


Re: [rt-users] Enabling CC to task owner only

2006-08-02 Thread Todd Chapman
On Wed, Aug 02, 2006 at 04:17:45PM +0930, Andrew Chapman wrote:
 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 '[EMAIL PROTECTED]' ) {


Always test outside of production. :)


  
 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).

 ___
 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
___
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


RE: [rt-users] Enabling CC to task owner only

2006-08-02 Thread Andrew Chapman
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 '[EMAIL PROTECTED]')) {
@{ $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 '[EMAIL PROTECTED]' ) {


Always test outside of production. :)


___
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