From 7643fbb45273c70dafa53a8c844726c9920cd7bd Mon Sep 17 00:00:00 2001 From: Jonathan Marten Date: Thu, 12 Apr 2018 22:23:31 +0200 Subject: [PATCH] From: Lars Ingebrigtsen * lisp/gnus/nnimap.el (nnimap-login): Allow anonymous logins (bug#24704). Copyright-paperwork-exempt: yes --- lisp/gnus/nnimap.el | 2 ++ 1 file changed, 2 insertions(+) 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") -- 2.39.5