[imp] Return-Path/redirect problem
Michael M Slusarz
slusarz at bigworm.colorado.edu
Mon Jan 20 18:44:08 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'];
}
Of course, sendmail may not like this for whatever reason so this might not
be the best solution...
michael
----- Forwarded message from slusarz at bigworm.colorado.edu -----
Date: Mon, 20 Jan 2003 17:38:14 -0800 (PST)
From: Michael M Slusarz <slusarz at bigworm.colorado.edu>
Reply-To: dev at lists.horde.org
Subject: [cvs] commit: imp compose.php
To: cvs at lists.horde.org
slusarz 2003/01/20 17:38:14 PST
Modified files:
. compose.php
Log:
Set Return-Path to be the redirecting user when redirecting a message.
PEAR::isError -> is_a().
Revision Changes Path
2.621 +9 -4 imp/compose.php
Chora Links:
http://cvs.horde.org/diff.php/imp/compose.php?r1=2.620&r2=2.621&ty=u
--
To unsubscribe, mail: cvs-unsubscribe at lists.horde.org
----- End forwarded message -----
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list