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:24 GMT
noel        2003/06/08 13:17:24

  Modified:    src/java/org/apache/james/transport/mailets Tag:
                        branch_2_1_fcs AbstractRedirect.java
  Log:
  Fixed problem where MessageID wasn't preserved through one code path.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.7   +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.1.2.6
  retrieving revision 1.1.2.7
  diff -u -r1.1.2.6 -r1.1.2.7
  --- AbstractRedirect.java	6 Jun 2003 23:55:04 -0000	1.1.2.6
  +++ AbstractRedirect.java	8 Jun 2003 20:17:24 -0000	1.1.2.7
  @@ -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