james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Keyser" <JKey...@telocity.com>
Subject RE: Return-Path patch
Date Fri, 05 Apr 2002 18:10:03 GMT
I don't think so.  When replying, you want the message to go to the sender
or what's in the "Reply-To" header.  However, bounces are not true replies,
and don't follow the same rules.

Now if there were a "bounce()" method on Message that did the same thing,
then yes, this would be a bug. :-)

> -----Original Message-----
> From: Serge Knystautas [mailto:sergek@lokitech.com]
> Sent: Friday, April 05, 2002 12:25 AM
> To: James Developers List
> Subject: Re: Return-Path patch
>
>
> Applied patch.  You know, I'm thinking this is a bug in JavaMail...
> shouldn't the MimeMessage.reply() method take the Return-Path into
> account?  Maybe this is something only a mail server has to
> worry about.
>   Anyway, it's in CVS now.
> --
> Serge Knystautas
> Loki Technologies - Unstoppable Websites
> http://www.lokitech.com/
>
> Jeff Keyser wrote:
> > 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:james-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:james-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message