diff options
| author | Jonathan Marten | 2018-04-12 22:23:31 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-12 22:24:11 +0200 |
| commit | 7643fbb45273c70dafa53a8c844726c9920cd7bd (patch) | |
| tree | 94b54c020cdddb7abff4d6d63ae92925518d6d7d | |
| parent | c22677bf00e420e7049bd4fca8e0c05772e973c2 (diff) | |
| download | emacs-7643fbb45273c70dafa53a8c844726c9920cd7bd.tar.gz emacs-7643fbb45273c70dafa53a8c844726c9920cd7bd.zip | |
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.el | 2 |
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.") | |||
| 522 | ((and (not (nnimap-capability "LOGINDISABLED")) | 522 | ((and (not (nnimap-capability "LOGINDISABLED")) |
| 523 | (eq (nnimap-stream-type nnimap-object) 'tls) | 523 | (eq (nnimap-stream-type nnimap-object) 'tls) |
| 524 | (or (null nnimap-authenticator) | 524 | (or (null nnimap-authenticator) |
| 525 | (eq nnimap-authenticator 'anonymous) | ||
| 525 | (eq nnimap-authenticator 'login))) | 526 | (eq nnimap-authenticator 'login))) |
| 526 | (nnimap-command "LOGIN %S %S" user password)) | 527 | (nnimap-command "LOGIN %S %S" user password)) |
| 527 | ((and (nnimap-capability "AUTH=CRAM-MD5") | 528 | ((and (nnimap-capability "AUTH=CRAM-MD5") |
| @@ -541,6 +542,7 @@ textual parts.") | |||
| 541 | (nnimap-wait-for-response sequence))) | 542 | (nnimap-wait-for-response sequence))) |
| 542 | ((and (not (nnimap-capability "LOGINDISABLED")) | 543 | ((and (not (nnimap-capability "LOGINDISABLED")) |
| 543 | (or (null nnimap-authenticator) | 544 | (or (null nnimap-authenticator) |
| 545 | (eq nnimap-authenticator 'anonymous) | ||
| 544 | (eq nnimap-authenticator 'login))) | 546 | (eq nnimap-authenticator 'login))) |
| 545 | (nnimap-command "LOGIN %S %S" user password)) | 547 | (nnimap-command "LOGIN %S %S" user password)) |
| 546 | ((and (nnimap-capability "AUTH=PLAIN") | 548 | ((and (nnimap-capability "AUTH=PLAIN") |