Patch to SendEmail.pm to fix minor bug.
If using sendmailpipe, and the mail command fails, RT still creates
an ‘Outgoing Mail Recorded’ transaction and logs a success message.
This patch eliminates the recording of ‘success’ messages if the mail
command fails - making the behavior consistent with the non-sendmailpipe logic.
RT version is 3.4.2.
Steve
— SendEmail.pm 2006-01-19 14:09:13.000000000 -0500
+++ SendEmail_Local.pm 2006-05-10 10:55:24.000000000 -0400
@@ -257,6 +257,7 @@
};
if ($@) {
$RT::Logger->crit( $msgid . “Could not send mail. -” . $@ );
-
return (0); } } else {