summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-04-08 09:20:54 -0700
committerKevin McCarthy <kevin@8t8.us>2020-04-08 09:20:54 -0700
commit4fc97a2026f671a35e3d296bbfdeb3794d6313c7 (patch)
tree6a2af10e0a9915bb4fd19be60ad797ee84a23271 /imap
parent4465a872baf727dfa28f167c94fd62474bcf3317 (diff)
Display error if no imap authenticators are available.
Without SASL enabled, and with an explicit value in $imap_authenticators not natively implemented by Mutt, no calls to authenticator->authenticate() were occuring. This resulted in the default r value of -1 passing through, which did not trigger the mutt_error() message after the loop. Without that message, an empty index would display with the "connecting" message still on the bottom, giving the appearance that Mutt is hung.
Diffstat (limited to 'imap')
-rw-r--r--imap/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/auth.c b/imap/auth.c
index e32b5ab4..48909cd8 100644
--- a/imap/auth.c
+++ b/imap/auth.c
@@ -55,7 +55,7 @@ int imap_authenticate (IMAP_DATA* idata)
char* methods;
char* method;
char* delim;
- int r = -1;
+ int r = IMAP_AUTH_UNAVAIL;
if (ImapAuthenticators)
{