From: Brendan Cully Date: Mon, 16 Aug 2004 21:36:06 +0000 (+0000) Subject: The attached patch causes mutt to attempt the next method in X-Git-Tag: mutt-1-5-15-rel~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=071a9f2c72c1bd36aeea01dcaea2e27bb06f85f7;p=mutt The attached patch causes mutt to attempt the next method in imap_authenticators if the previous method failed, even if the server reported that the method was available. Previously mutt would give up if any authentication method failed. --- diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index c55cdcc1..a68c9d42 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -122,6 +122,13 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata, const char* method) irc = imap_cmd_step (idata); while (irc == IMAP_CMD_CONTINUE); + if (method && irc == IMAP_CMD_NO) + { + dprint (2, (debugfile, "imap_auth_sasl: %s failed\n", method)); + sasl_dispose (&saslconn); + return IMAP_AUTH_UNAVAIL; + } + if (irc == IMAP_CMD_BAD || irc == IMAP_CMD_NO) goto bail;