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:
parent
655fe3fe0d
commit
99e8d6fc26
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue