]> git.eshelyaron.com Git - emacs.git/commitdiff
From: Lars Ingebrigtsen <larsi@gnus.org>
authorJonathan Marten <jjm@keelhaul.me.uk>
Thu, 12 Apr 2018 20:23:31 +0000 (22:23 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2018 20:24:11 +0000 (22:24 +0200)
* lisp/gnus/nnimap.el (nnimap-login): Allow anonymous logins
(bug#24704).

Copyright-paperwork-exempt: yes

lisp/gnus/nnimap.el

index a884376efb6d34f585d061245ba8f1c3852861e0..01d7948afba3e2fa83f8368716e562aed3036317 100644 (file)
@@ -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")