[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 99e8d6f 2/2: Fix long credentials when using auth i
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 99e8d6f 2/2: Fix long credentials when using auth in nnimap.el |
Date: |
Fri, 12 Jul 2019 19:31:32 -0400 (EDT) |
branch: master
commit 99e8d6fc26a163001c3a7ccf6786e1c4ecc5788e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix long credentials when using auth in nnimap.el
* lisp/gnus/nnimap.el (nnimap-login): When base64-ing
credentials, don't let bsae64-encode-string split the result into
several lines, because servers do not understand that (bug#34458).
---
lisp/gnus/nnimap.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 9e52abc..06817f4 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -570,7 +570,8 @@ textual parts.")
(base64-encode-string
(concat user " "
(rfc2104-hash 'md5 64 16 password
- (base64-decode-string challenge))))
+ (base64-decode-string challenge)))
+ t)
"\r\n"))
(nnimap-wait-for-response sequence)))
((and (not (nnimap-capability "LOGINDISABLED"))
@@ -586,7 +587,8 @@ textual parts.")
(base64-encode-string
(format "\000%s\000%s"
(nnimap-quote-specials user)
- (nnimap-quote-specials password)))))))
+ (nnimap-quote-specials password))
+ t)))))
(defun nnimap-quote-specials (string)
(with-temp-buffer