[rt-devel] Fix for sendmailpipe errors in mailgate

Jesse jesse at fsck.com
Tue Jul 24 17:48:53 EDT 2001


In the past day or two, someone was reporting seeing errors related to
'Mail::Mailer::sendmailpipe"

The attached patch should take care of that and will be in 2.0.4


Index: bin/rt-mailgate
===================================================================
RCS file: /raid/cvsroot/rt/bin/Attic/rt-mailgate,v
retrieving revision 1.1.2.12
diff -r1.1.2.12 rt-mailgate
455,456c455,462
<     $entity->send($RT::MailCommand, $RT::MailParams);
<         
---
>     if ($RT::MailCommand eq 'sendmailpipe') {
>         open (MAIL, "|$RT::SendmailPath $RT::SendmailArguments") || return(0);
>         print MAIL $entity->as_string;
>         close(MAIL);
>     }
>     else {
> 	$entity->send($RT::MailCommand, $RT::MailParams);
>     }
-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

. . . when not in doubt, get in doubt.  -- Old Discordian Proveb




More information about the Rt-devel mailing list