[rt-users] Bug or understanding problem

Phil Homewood pdh at snapgear.com
Thu Oct 24 20:19:37 EDT 2002


Niranjan Patel wrote:
> If I say on Create Autoreply to requestors it send to
> all requestors not CC.

That's what AutoreplyToRequestors means.

> If I say on Create NotifyRequestorsandCC it sends only
> to all CC but it doesnt send to first requestor I
> added.

http://www.fsck.com/rtfm/article.html?id=5#73

> If I say on Create NotifyOtherRecipients it doen't
> send to CC

That's not what NotifyOtherRecipients is for. Its only
purpose is to send mail to "one-off" CC and BCC addresses
entered on the ticket update page.

> Somehow I am not able to send notification to all
> address entered both CC and requestors

OnCreate AutoreplyToRequestors with template Foo
OnCreate NotifyRequestorsandCCs with template Foo

If you have multiple requestors they'll get two copies.
If this is a problem, you probably want to hack
lib/RT/Action/Autoreply.pm to also add the CCs, and
forget about the second scrip above.

The following untested patch might do what you want.
Either modify Autoreply.pm, or make your own scrip
that ISA RT::Action::Autoreply and override the
SetReturnAddress method.

RCS file: /cvs/local/rt/lib/RT/Action/Autoreply.pm,v
retrieving revision 1.3
diff -u -r1.3 Autoreply.pm
--- Autoreply.pm        15 Jul 2002 01:30:27 -0000      1.3
+++ Autoreply.pm        25 Oct 2002 00:17:09 -0000
@@ -18,6 +18,7 @@
     my $self=shift;
 
     push(@{$self->{'To'}}, @{$self->TicketObj->Requestors->Emails});
+    push(@{$self->{'Cc'}}, @{$self->TicketObj->CC->Emails});
     
     return(1);
 }

-- 
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances



More information about the rt-users mailing list