I have a scrip which sends a notification to the reqeustor
when a ticket is resolved. Nothing custome her, just built-in
scrip stuff.
There appears to be a bug in RT that causes no notification to
be sent under circumstances which I can’t figure out.
Here is an RT log that shows the requestor being notified when
the ticket is opened, but when the ticket is resolved shortly
after the scrip says: “No recipients found.”
$RT::Logger->info(“Pre-weed To: " . join ( ‘,’, @{ $self->{‘To’} } ));
# Weed out any RT addresses. We really don’t want to talk to ourselves!
@{$self->{‘To’}} = RT::EmailParser::CullRTAddresses(”", @{$self->{‘To’}});
Here is the log output showing that the requestor is set in
$self->{‘To’} when the ticket is created, but not when the
ticket is resolved just seconds later.
07:15:00 RT: rt-3.0.8-175-3049.9.13246137098447@gedas.com#175/3049 - Scrip 15 Notify Requestor on Resolve (/opt/rt3/local/lib/RT/Action/SendEmail.pm:92)
07:15:00 RT: Pre-weed To: (/opt/rt3/local/lib/RT/Action/SendEmail.pm:95)
07:15:00 RT: To: (/opt/rt3/local/lib/RT/Action/SendEmail.pm:128)
07:15:00 RT: rt-3.0.8-175-3049.9.13246137098447@gedas.com No recipients found. Not sending. (/opt/rt3/local/lib/RT/Action/SendEmail.pm:259)
This is very strange.
-ToddOn Tue, Feb 03, 2004 at 04:09:24PM -0500, Todd Chapman wrote:
Can someone else test this problem?
I have a scrip which sends a notification to the reqeustor
when a ticket is resolved. Nothing custome her, just built-in
scrip stuff.
There appears to be a bug in RT that causes no notification to
be sent under circumstances which I can’t figure out.
Here is an RT log that shows the requestor being notified when
the ticket is opened, but when the ticket is resolved shortly
after the scrip says: “No recipients found.”
It looks like a difference in Autoreply.pm and Notify.pm.
Autoreply.pm sets the ‘To’ differently than Notify.pm.
-ToddOn Wed, Feb 04, 2004 at 09:44:19AM -0500, Todd Chapman wrote:
More details:
I added some logging info to SendEmail.pm:
#send the email
$RT::Logger->info(“Pre-weed To: " . join ( ‘,’, @{ $self->{‘To’} } ));
# Weed out any RT addresses. We really don’t want to talk to ourselves!
@{$self->{‘To’}} = RT::EmailParser::CullRTAddresses(”", @{$self->{‘To’}});
Here is the log output showing that the requestor is set in
$self->{‘To’} when the ticket is created, but not when the
ticket is resolved just seconds later.
The ‘Notify’ action doesn’t send an e-mail to the person
who triggered the action. Since I was the requestor on the
ticket and the resolver, my e-mail address was being stripped
out and there were no recpients to send to.
It was a good exercise though. I learned a lot more about
RT’s internals.
-ToddOn Wed, Feb 04, 2004 at 10:12:09AM -0500, Todd Chapman wrote:
Am I talking to myself too much?
It looks like a difference in Autoreply.pm and Notify.pm.
Autoreply.pm sets the ‘To’ differently than Notify.pm.