aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-12-14 12:23:23 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-12-14 12:24:17 +0000
commit32b9c30e6705ca2b96b836cd0a8380b6a23478ff (patch)
tree7a93a32ef39382dbf11720c27788028c8fc7b5fd /lib/imap.c
parent75cd7fd66762bbfb73830553c8229aa0182f8987 (diff)
imap: Fixed exclude of clear text when using auth=* in commit 75cd7fd66762bb
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.
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 3cb1e8f84..c257d76cc 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -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)) {