Commit 32b9c30e authored by Steve Holme's avatar Steve Holme
Browse files

imap: Fixed exclude of clear text when using auth=* in commit 75cd7fd6

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.
parent 75cd7fd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {