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 Redirect.java
Date Mon, 02 Jun 2003 05:55:13 GMT
noel        2003/06/01 22:55:13

  Modified:    src/java/org/apache/james/transport/mailets Redirect.java
  Log:
  Reverted Redirect to previous version.  Lost a sticky tag, and accidentally commited v2
branch to HEAD.
  
  Revision  Changes    Path
  1.26      +4 -10     jakarta-james/src/java/org/apache/james/transport/mailets/Redirect.java
  
  Index: Redirect.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/Redirect.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Redirect.java	2 Jun 2003 05:45:37 -0000	1.25
  +++ Redirect.java	2 Jun 2003 05:55:13 -0000	1.26
  @@ -60,16 +60,12 @@
   
   import java.io.PrintWriter;
   import java.io.StringWriter;
  -
   import java.util.Collection;
   import java.util.Date;
   import java.util.Enumeration;
   import java.util.HashSet;
  -import java.util.Iterator;
   import java.util.Locale;
   import java.util.StringTokenizer;
  -import java.util.Vector;
  -
   
   import javax.mail.Message;
   import javax.mail.MessagingException;
  @@ -79,12 +75,11 @@
   import javax.mail.internet.MimeMessage;
   import javax.mail.internet.MimeMultipart;
   
  -import org.apache.james.util.RFC2822Headers;
  -import org.apache.james.util.RFC822DateFormat;
  -
   import org.apache.mailet.GenericMailet;
   import org.apache.mailet.Mail;
   import org.apache.mailet.MailAddress;
  +import org.apache.mailet.RFC2822Headers;
  +import org.apache.mailet.dates.RFC822DateFormat;
   
   
   /**
  @@ -240,7 +235,6 @@
   *&lt;static&gt;TRUE&lt;/static&gt;<BR>
   *&lt;/mailet&gt;</P>
    *
  - * @author  Danny Angus   <danny@thought.co.uk>
    *
    */
   public class Redirect extends GenericMailet {
  @@ -606,9 +600,9 @@
           if(reply.getHeader(RFC2822Headers.DATE) == null) {
               reply.setHeader(RFC2822Headers.DATE, rfc822DateFormat.format(new Date()));
           }
  -        
  +
           //
  -         
  +
           if(replyTo != null) {
               InternetAddress[] iart = new InternetAddress[1];
               iart[0] = replyTo.toInternetAddress();
  
  
  

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