james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vince...@apache.org
Subject cvs commit: james-server/src/java/org/apache/james/transport/matchers SMTPAuthSuccessful.java SMTPAuthUserIs.java
Date Thu, 17 Jul 2003 14:00:22 GMT
vincenzo    2003/07/17 07:00:22

  Modified:    src/java/org/apache/james/smtpserver Tag: branch_2_1_fcs
                        SMTPHandler.java
  Added:       src/java/org/apache/james/transport/matchers Tag:
                        branch_2_1_fcs SMTPAuthSuccessful.java
                        SMTPAuthUserIs.java
  Log:
  Adding support to check for successful authentication of users if SMTP AUTH is active.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.35.4.13 +9 -1      james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java
  
  Index: SMTPHandler.java
  ===================================================================
  RCS file: /home/cvs/james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java,v
  retrieving revision 1.35.4.12
  retrieving revision 1.35.4.13
  diff -u -r1.35.4.12 -r1.35.4.13
  --- SMTPHandler.java	4 Jun 2003 23:21:12 -0000	1.35.4.12
  +++ SMTPHandler.java	17 Jul 2003 14:00:10 -0000	1.35.4.13
  @@ -81,7 +81,7 @@
    * Provides SMTP functionality by carrying out the server side of the SMTP
    * interaction.
    *
  - * @version This is $Revision$
  + * @version CVS $Revision$ $Date$
    */
   public class SMTPHandler
       extends AbstractLogEnabled
  @@ -192,6 +192,11 @@
       private final static String MAIL_OPTION_SIZE = "SIZE";
   
       /**
  +     * The mail attribute holding the SMTP AUTH user name, if any.
  +     */
  +    private final static String SMTP_AUTH_USER_ATTRIBUTE_NAME = "org.apache.james.SMTPAuthUser";
  +    
  +    /**
        * The thread executing this handler
        */
       private Thread handlerThread;
  @@ -1428,6 +1433,9 @@
               }
               mail.setRemoteHost(remoteHost);
               mail.setRemoteAddr(remoteIP);
  +            if (getUser() != null) {
  +                mail.setAttribute(SMTP_AUTH_USER_ATTRIBUTE_NAME, getUser());
  +            }
               theConfigData.getMailServer().sendMail(mail);
               Collection theRecipients = mail.getRecipients();
               String recipientString = "";
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +0 -0      james-server/src/java/org/apache/james/transport/matchers/SMTPAuthSuccessful.java
  
  Index: SMTPAuthSuccessful.java
  ===================================================================
  RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/matchers/SMTPAuthSuccessful.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  
  1.1.2.1   +0 -0      james-server/src/java/org/apache/james/transport/matchers/SMTPAuthUserIs.java
  
  Index: SMTPAuthUserIs.java
  ===================================================================
  RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/matchers/SMTPAuthUserIs.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

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


Mime
View raw message