james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vince...@apache.org
Subject svn commit: r161765 - james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java
Date Mon, 18 Apr 2005 15:02:24 GMT
Author: vincenzo
Date: Mon Apr 18 08:02:23 2005
New Revision: 161765

URL: http://svn.apache.org/viewcvs?view=rev&rev=161765
Log:
Always announce AUTH capability to clients (JIRA JAMES-369).

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?view=diff&r1=161764&r2=161765
==============================================================================
--- james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/smtpserver/SMTPHandler.java Mon Apr 18 08:02:23
2005
@@ -64,7 +64,7 @@
  * Provides SMTP functionality by carrying out the server side of the SMTP
  * interaction.
  *
- * @version This is $Revision: 1.55 $
+ * @version This is $Revision$
  */
 public class SMTPHandler
     extends AbstractLogEnabled
@@ -642,7 +642,9 @@
         } else {
             resetState();
             state.put(CURRENT_HELO_MODE, COMMAND_HELO);
-            if (authRequired) {
+//            if (authRequired) {
+            // always announcing AUTH capability to the client
+            if (true) {
                 //This is necessary because we're going to do a multiline response
                 responseBuffer.append("250-");
             } else {
@@ -657,7 +659,9 @@
                           .append(remoteIP)
                           .append("])");
             responseString = clearResponseBuffer();
-            if (authRequired) {
+//            if (authRequired) {
+            // always announcing AUTH capability to the client
+            if (true) {
                 writeLoggedResponse(responseString);
                 responseString = "250-AUTH LOGIN PLAIN";
                 writeLoggedResponse(responseString);
@@ -688,7 +692,9 @@
                 responseString = "250-SIZE " + maxMessageSize;
                 writeLoggedResponse(responseString);
             }
-            if (authRequired) {
+//            if (authRequired) {
+            // always announcing AUTH capability to the client
+            if (true) {
                 //This is necessary because we're going to do a multiline response
                 responseBuffer.append("250-");
             } else {
@@ -703,7 +709,9 @@
                            .append(remoteIP)
                            .append("])");
             responseString = clearResponseBuffer();
-            if (authRequired) {
+//            if (authRequired) {
+            // always announcing AUTH capability to the client
+            if (true) {
                 writeLoggedResponse(responseString);
                 responseString = "250-AUTH LOGIN PLAIN";
                 writeLoggedResponse(responseString);



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