[imp] Return-Path/redirect problem

Chuck Hagenbuch chuck at horde.org
Tue Jan 21 11:01:36 PST 2003


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> This fix only works if you are using SMTP to send mail.  If you are using
> the sendmail option, this won't change anything.  That is because the
> sendmail PEAR module does not honor a user specified Return-Path - it
> always uses the from address.  Since Chuck wrote it, maybe he should
> install this patch (from smtp.php) (hint hint :) ):
> 
> // Since few MTAs are going to allow this header to be forged
> // unless it's in the MAIL FROM: exchange, we'll use Return-Path
> // instead of From: if it's set
> if (!empty($headers['Return-Path'])) {
>     $from = $headers['Return-Path'];
> }

I can do so, but I'd prefer it if someone using the sendmail driver would
test this and confirm that it doesn't cause problems first.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the imp mailing list