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 Tue, 03 Jun 2003 00:42:37 GMT
noel        2003/06/02 17:42:37

  Modified:    src/java/org/apache/james/transport/mailets Tag:
                        branch_2_1_fcs AbstractRedirect.java
  Log:
  Minor fixes: typo, CRLF line terminator, corrected calls to use the new getAttachmentType(Mail)
method
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +4 -4      jakarta-james/src/java/org/apache/james/transport/mailets/Attic/AbstractRedirect.java
  
  Index: AbstractRedirect.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/Attic/AbstractRedirect.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- AbstractRedirect.java	2 Jun 2003 22:37:07 -0000	1.1.2.1
  +++ AbstractRedirect.java	3 Jun 2003 00:42:36 -0000	1.1.2.2
  @@ -123,7 +123,7 @@
    * <LI>a "setX(Mail, Tx, Mail)" method is called to change the correspondent "X"
value
    * of the redirected Mail object, using the value returned by "gexX(Mail)".</LI>
    * </UL>
  - * <P>Here follows the tipical pattern of those methods:</P>
  + * <P>Here follows the typical pattern of those methods:</P>
    * <PRE><CODE>
    *    ...
    *    Tx x;
  @@ -952,7 +952,7 @@
           String head       = "";
           StringBuffer headBuffer = new StringBuffer(1024);
           while(heads.hasMoreElements()) {
  -            headBuffer.append(heads.nextElement().toString()).append("\n");
  +            headBuffer.append(heads.nextElement().toString()).append("\r\n");
           }
           head = headBuffer.toString();
           boolean all = false;
  @@ -999,9 +999,9 @@
               part.setText(sout.toString());
               part.setDisposition("inline");
               mpContent.addBodyPart(part);
  -            if(getAttachmentType() != NONE) {
  +            if(getAttachmentType(originalMail) != NONE) {
                   part = new MimeBodyPart();
  -                switch(getAttachmentType()) {
  +                switch(getAttachmentType(originalMail)) {
                       case HEADS: //HEADS:
                           part.setText(head);
                           break;
  
  
  

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