[imp] Return-Path/redirect problem

Liam Hoekenga liamr at umich.edu
Mon Jan 20 22:09:59 PST 2003


> 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 don't think that this what we need... doesn't this set the From 
header to the value of the Return-Path header (if that header is set)?

Liam



More information about the imp mailing list