[rt-users] ParseNewMessageForTicketCcs

Amy Tanner amy at real-time.com
Thu Oct 2 12:38:09 EDT 2003


On Thu, Oct 02, 2003 at 10:22:25AM -0500, Amy Tanner (amy at real-time.com) wrote:
> On Thu, Oct 02, 2003 at 08:29:10AM -0400, Boris-Michel Deschenes (bmdeschenes at ubi.com) wrote:
> > 
> > Hey guys, we are at least two on this list trying to get this to work but we
> > can't find the problem, I'd really like to know if anybody is able to use
> > this feature from the RT_SiteConfig.pm which automatically parse the CC
> > field from the requestor email and add these people as CC for the ticket... 
> > 
> > RT_Config.pm:Set($ParseNewMessageForTicketCcs , true);
> > 
> > If you have this working please let me know, I'm using 3.0.4 and I can't get
> > anybody to be added automatically as ticket CC...
> > 
> > thanks a lot guys...
> 
> I had a perl guy look at the code and he thought it looked like this
> feature only CCs people on subsequent replies, not on the initial
> request.  But he made modified the code to work on the initial reply to.
> I'll get his changes and post them.

Here's the patch that made it work for us.  We are running 3.0.3

-- 
Amy Tanner
amy at real-time.com
-------------- next part --------------
--- /usr/local/rt3.0.3/lib/RT/Action/Autoreply.pm.old	Thu Oct  2 11:32:56 2003
+++ /usr/local/rt3.0.3/lib/RT/Action/Autoreply.pm	Thu Oct  2 11:32:38 2003
@@ -42,6 +42,7 @@
     my $self=shift;
 
     push(@{$self->{'To'}}, $self->TicketObj->Requestors->MemberEmailAddresses);
+    push(@{$self->{'Cc'}}, $self->TicketObj->Cc->MemberEmailAddresses);
     
     return(1);
 }
--- /usr/local/rt3.0.3/lib/RT/Action/SendEmail.pm.old	Thu Oct  2 11:34:15 2003
+++ /usr/local/rt3.0.3/lib/RT/Action/SendEmail.pm	Wed Oct  1 17:19:01 2003
@@ -123,7 +123,7 @@
     $self->SetHeader( 'Cc', join ( ',', @{ $self->{'Cc'} } ) )
       if ( $self->{'Cc'} && @{ $self->{'Cc'} } );
     $self->SetHeader( 'Bcc', join ( ',', @{ $self->{'Bcc'} } ) )
-      if ( $self->{'Ccc'} && @{ $self->{'Bcc'} } );
+      if ( $self->{'Bcc'} && @{ $self->{'Bcc'} } );
 
 
     $self->SetHeader('MIME-Version', '1.0');


More information about the rt-users mailing list