autoconfig guess: We didn't detect SMTP auth schemes correctly. Bug 556491, r=bwinton
authorBen Bucksch <ben.bucksch@beonex.com>
Thu, 01 Apr 2010 16:51:12 +0200
changeset 5348 0d37fec983676b139487b4e53f3f1ff4d139b87c
parent 5347 f4330a8f5022d0d377d7f8836749bf57ed5af21e
child 5349 3179601351f15619f914cfb2d87cc9020c8701c0
push idunknown
push userunknown
push dateunknown
reviewersbwinton
bugs556491
autoconfig guess: We didn't detect SMTP auth schemes correctly. Bug 556491, r=bwinton
mailnews/base/prefs/content/accountcreation/guessConfig.js
--- a/mailnews/base/prefs/content/accountcreation/guessConfig.js
+++ b/mailnews/base/prefs/content/accountcreation/guessConfig.js
@@ -626,17 +626,17 @@ HostDetector.prototype =
     var result = new Array();
     var line = capaResponse.join("\n").toUpperCase();
     var prefix = "";
     if (protocol == POP)
       prefix = "";
     else if (protocol == IMAP)
       prefix = "AUTH=";
     else if (protocol == SMTP)
-      prefix = "AUTH ";
+      prefix = "AUTH.*";
     else
       throw NotReached("must pass protocol");
     if (new RegExp(prefix + "GSSAPI").test(line))
       result.push(Ci.nsMsgAuthMethod.GSSAPI);
     if (new RegExp(prefix + "(NTLM|MSN)").test(line))
       result.push(Ci.nsMsgAuthMethod.NTLM);
     if (new RegExp(prefix + "CRAM-MD5").test(line))
       result.push(Ci.nsMsgAuthMethod.passwordEncrypted);