summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.h1
-rw-r--r--init.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/globals.h b/globals.h
index 874b6d88..f8b9a65b 100644
--- a/globals.h
+++ b/globals.h
@@ -50,6 +50,7 @@ WHERE char *HdrFmt;
WHERE char *Homedir;
WHERE char *Hostname;
#ifdef USE_IMAP
+WHERE char *ImapAuthenticators INITVAL (NULL);
WHERE char *ImapDelimChars INITVAL (NULL);
WHERE char *ImapHomeNamespace INITVAL (NULL);
WHERE char *ImapPass INITVAL (NULL);
diff --git a/init.h b/init.h
index 9300057a..88f68f1c 100644
--- a/init.h
+++ b/init.h
@@ -670,6 +670,23 @@ struct option_t MuttVars[] = {
** list.
*/
#ifdef USE_IMAP
+ { "imap_authenticators", DT_STR, R_NONE, UL &ImapAuthenticators, UL 0 },
+ /*
+ ** .pp
+ ** This is a comma-delimited list of authentication methods mutt may
+ ** attempt to use to log in to an IMAP server, in the order mutt should
+ ** try them. Authentication methods are either 'login' or the right
+ ** side of an IMAP 'AUTH=xxx' capability string, eg 'digest-md5',
+ ** 'gssapi' or 'cram-md5'. This parameter is case-insensitive. If this
+ ** parameter is unset (the default) mutt will try all available methods,
+ ** in order from most-secure to least-secure.
+ ** .pp
+ ** Example: set imap_authenticators="gssapi,cram-md5,login"
+ ** .pp
+ ** \fBNote:\fP Mutt will only fall back to other authentication methods if
+ ** the previous methods are unavailable. If a method is available but
+ ** authentication fails, mutt will not connect to the IMAP server.
+ */
{ "imap_delim_chars", DT_STR, R_NONE, UL &ImapDelimChars, UL "/." },
/*
** .pp