[rt-users] Autoreply by nobody [Solution]

Nicolas Mailhot Nicolas.Mailhot at one2team.com
Mon Sep 16 06:14:34 EDT 2002


Hi,

	For those interested here is the solution I finaly come up with :

if ($RT::MailCommand eq 'sendmailpipe')
{                                                                                         open (MAIL, "|$RT::SendmailPath -f $RT::OwnerEmail $RT::SendmailArguments") || return(0);                                     print MAIL $MIMEObj->as_string;                                                                                               close(MAIL);                                                                                                              }                                                                                                                             else {                                                                                                                            unless ($MIMEObj->send($RT::MailCommand, $RT::MailParams, "-f $RT::OwnerEmail")) {                                                $RT::Logger->crit("$self: Could not send mail for ".                                                                                            $self->TransactionObj . "\n");                                                                              return(0);                                                                                                                }                                                                                                                         } 

You must change both SendEmail.pm and Email.pm to make it work (took me
a *lot* of time to figure why my changes didn't have any effect:).

It seems to work cleanly (at least with sendmail, not sendmailpipe).
Moreover I think this should be the default behaviour, OwnerEmail is
really the one that should be in the enveloppe. 

Anyway, thanks to everyone that tried to help, I learned a few things
and I would certainly have taken me a lot more time without you all.

Best regards,


-- 
Nicolas Mailhot
One2team : 12 bis rue de la Pierre Levée - 75011 Paris - France  
Tél : + 33 1 43 38 19 80 - Fax : +33 1 43 14 23 07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20020916/8484539a/attachment.sig>


More information about the rt-users mailing list