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).
This commit is contained in:
Lars Ingebrigtsen 2019-07-13 01:31:12 +02:00
parent 655fe3fe0d
commit 99e8d6fc26

View file

@ -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