imap: Fixed exclude of clear text when using auth=* in commit 75cd7fd66762bb
authorSteve Holme <steve_holme@hotmail.com>
Sat, 14 Dec 2013 12:23:23 +0000 (12:23 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 14 Dec 2013 12:24:17 +0000 (12:24 +0000)
It is not 100% clear whether * should include clear text LOGIN or not
from RFC-5092, however, including it is then consistent with current
POP3 behaviour where clear text, APOP or SASL may be chosen.

lib/imap.c

index 3cb1e8f..c257d76 100644 (file)
@@ -2334,7 +2334,7 @@ static CURLcode imap_parse_url_options(struct connectdata *conn)
       const char *value = ptr + 1;
 
       if(strequal(value, "*")) {
-        imapc->preftype = IMAP_TYPE_SASL;
+        imapc->preftype = IMAP_TYPE_ANY;
         imapc->prefmech = SASL_AUTH_ANY;
       }
       else if(strequal(value, SASL_MECH_STRING_LOGIN)) {