summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marten <jjm@keelhaul.me.uk>2018-04-12 22:23:31 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2018-04-12 22:24:11 +0200
commit7643fbb45273c70dafa53a8c844726c9920cd7bd (patch)
tree94b54c020cdddb7abff4d6d63ae92925518d6d7d
parentc22677bf00e420e7049bd4fca8e0c05772e973c2 (diff)
downloademacs-7643fbb45273c70dafa53a8c844726c9920cd7bd.tar.gz
From: Lars Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/nnimap.el (nnimap-login): Allow anonymous logins (bug#24704). Copyright-paperwork-exempt: yes
-rw-r--r--lisp/gnus/nnimap.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index a884376efb6..01d7948afba 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -522,6 +522,7 @@ textual parts.")
((and (not (nnimap-capability "LOGINDISABLED"))
(eq (nnimap-stream-type nnimap-object) 'tls)
(or (null nnimap-authenticator)
+ (eq nnimap-authenticator 'anonymous)
(eq nnimap-authenticator 'login)))
(nnimap-command "LOGIN %S %S" user password))
((and (nnimap-capability "AUTH=CRAM-MD5")
@@ -541,6 +542,7 @@ textual parts.")
(nnimap-wait-for-response sequence)))
((and (not (nnimap-capability "LOGINDISABLED"))
(or (null nnimap-authenticator)
+ (eq nnimap-authenticator 'anonymous)
(eq nnimap-authenticator 'login)))
(nnimap-command "LOGIN %S %S" user password))
((and (nnimap-capability "AUTH=PLAIN")