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/core MimeMessageWrapper.java
Date Tue, 04 Feb 2003 19:38:21 GMT
noel        2003/02/04 11:38:21

  Modified:    src/java/org/apache/james/core Tag: branch_2_1_fcs
                        MimeMessageWrapper.java
  Log:
  allow subject and date to be mutable in the pipeline
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.17.4.1  +7 -0      jakarta-james/src/java/org/apache/james/core/MimeMessageWrapper.java
  
  Index: MimeMessageWrapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/core/MimeMessageWrapper.java,v
  retrieving revision 1.17
  retrieving revision 1.17.4.1
  diff -u -r1.17 -r1.17.4.1
  --- MimeMessageWrapper.java	26 Oct 2002 04:15:30 -0000	1.17
  +++ MimeMessageWrapper.java	4 Feb 2003 19:38:21 -0000	1.17.4.1
  @@ -697,6 +697,7 @@
               loadMessage();
           }
           modified = true;
  +        headers.setHeader(RFC2822Headers.SUBJECT, subject);
           message.setSubject(subject);
       }
   
  @@ -705,6 +706,11 @@
               loadMessage();
           }
           modified = true;
  +        // is this correct?
  +        try {
  +            headers.setHeader(RFC2822Headers.SUBJECT, new String(subject.getBytes(charset)));
  +        }
  +        catch (java.io.UnsupportedEncodingException _) { /* TODO */ }
           message.setSubject(subject, charset);
       }
   
  @@ -713,6 +719,7 @@
               loadMessage();
           }
           modified = true;
  +        headers.setHeader(RFC2822Headers.DATE, mailDateFormat.format(d));
           message.setSentDate(d);
       }
   
  
  
  

---------------------------------------------------------------------
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