You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2005/08/08 19:30:45 UTC

svn commit: r230819 - /james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java

Author: bago
Date: Mon Aug  8 10:30:41 2005
New Revision: 230819

URL: http://svn.apache.org/viewcvs?rev=230819&view=rev
Log:
8BITMIME announce support (see also JAMES-52).
SMTPHandler cleaning: unused variable removed.

Modified:
    james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java

Modified: james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java?rev=230819&r1=230818&r2=230819&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java Mon Aug  8 10:30:41 2005
@@ -178,7 +178,7 @@
      * 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
      */
@@ -587,7 +587,7 @@
     private boolean parseCommand(String command) throws Exception {
         String argument = null;
         boolean returnValue = true;
-        
+
 
         if (command == null) {
             return false;
@@ -703,6 +703,7 @@
 
             esmtpextensions.add("PIPELINING");
             esmtpextensions.add("ENHANCEDSTATUSCODES");
+            esmtpextensions.add("8BITMIME");
 
             // Iterator i = esmtpextensions.iterator();
             for (int i = 0; i < esmtpextensions.size(); i++) {
@@ -759,7 +760,7 @@
      * Carries out the Plain AUTH SASL exchange.
      *
      * According to RFC 2595 the client must send: [authorize-id] \0 authenticate-id \0 password.
-     * 
+     *
      * >>> AUTH PLAIN dGVzdAB0ZXN0QHdpei5leGFtcGxlLmNvbQB0RXN0NDI=
      * Decoded: test\000test@wiz.example.com\000tEst42
      *
@@ -970,9 +971,9 @@
                     // Handle the SIZE extension keyword
 
                     if (mailOptionName.startsWith(MAIL_OPTION_SIZE)) {
-                        if (!(doMailSize(mailOptionValue))) {
-                            return;
-                        }
+                      if (!(doMailSize(mailOptionValue))) {
+                          return;
+                      }
                     } else {
                         // Unexpected option attached to the Mail command
                         if (getLogger().isDebugEnabled()) {
@@ -1193,7 +1194,6 @@
                     if (theConfigData.isVerifyIdentity()) {
                         String authUser = (getUser()).toLowerCase(Locale.US);
                         MailAddress senderAddress = (MailAddress) state.get(SENDER);
-                        boolean domainExists = false;
 
                         if ((!authUser.equals(senderAddress.getUser())) ||
                             (!theConfigData.getMailServer().isLocalServer(senderAddress.getHost()))) {
@@ -1605,4 +1605,5 @@
         }
 
     }
+
 }



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