james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets AbstractRedirect.java
Date Sun, 08 Jun 2003 20:17:43 GMT
noel        2003/06/08 13:17:43

  Modified:    src/java/org/apache/james/transport/mailets
                        AbstractRedirect.java
  Log:
  Fixed problem where MessageID wasn't preserved through one code path.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-james/src/java/org/apache/james/transport/mailets/AbstractRedirect.java
  
  Index: AbstractRedirect.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/AbstractRedirect.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractRedirect.java	6 Jun 2003 23:46:35 -0000	1.5
  +++ AbstractRedirect.java	8 Jun 2003 20:17:43 -0000	1.6
  @@ -777,7 +777,7 @@
        */
       public void service(Mail originalMail) throws MessagingException {
   
  -//        boolean keepMessageId = false;
  +        boolean keepMessageId = false;
   
           // duplicates the Mail object, to be able to modify the new mail keeping the original
untouched
           Mail newMail = ((MailImpl) originalMail).duplicate(newName((MailImpl) originalMail));
  @@ -832,7 +832,7 @@
               if (isDebug) {
                   log("Message resent unaltered.");
               }
  -//            keepMessageId = true;
  +            keepMessageId = true;
           }
   
           //Set additional headers
  @@ -855,9 +855,9 @@
   
           newMail.getMessage().saveChanges();
   
  -//        if (keepMessageId) {
  -//            setMessageId(newMail, originalMail);
  -//        }
  +        if (keepMessageId) {
  +            setMessageId(newMail, originalMail);
  +        }
   
           if (senderDomainIsValid(newMail)) {
               //Send it off...
  
  
  

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


Mime
View raw message