I apologize for sending this directly to the developer's list, but the bug
database web site isn't working at the moment. (Or maybe I just can't get
to it from my ISP - I'm not sure which.)
This proposed patch is in response to the repeated bounced e-mail from
lokitech.com yesterday. The problem was that their James server was
bouncing the e-mail to the sender (the mailing list), and not the address in
the Return-Path header as it was supposed to. The attached file is intended
to fix that problem.
Index: src/java/org/apache/james/James.java
===================================================================
RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/James.java,v
retrieving revision 1.19
diff -u -r1.19 James.java
--- src/java/org/apache/james/James.java 27 Feb 2002 05:05:53 -0000 1.19
+++ src/java/org/apache/james/James.java 4 Apr 2002 02:19:23 -0000
@@ -347,6 +347,11 @@
MimeMessage orig = mail.getMessage();
//Create the reply message
MimeMessage reply = (MimeMessage) orig.reply(false);
+ //If there is a Return-Path header,
+ if (orig.getHeader("Return-Path") != null) {
+ //Return the message to that address, not to the Reply-To address
+ reply.setRecipient(MimeMessage.RecipientType.TO, new
+InternetAddress(orig.getHeader("Return-Path")[0]));
+ }
//Create the list of recipients in our MailAddress format
Collection recipients = new HashSet();
Address addresses[] = reply.getAllRecipients();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>