From 071a9f2c72c1bd36aeea01dcaea2e27bb06f85f7 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Mon, 16 Aug 2004 21:36:06 +0000 Subject: [PATCH] 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. --- imap/auth_sasl.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.40.0