]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix long credentials when using auth in nnimap.el
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Jul 2019 23:31:12 +0000 (01:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Jul 2019 23:31:24 +0000 (01:31 +0200)
* 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

index 9e52abc1ca7f46186a47d139158bec0db83f6690..06817f452d227897c1d0a50eeed3059931a2d102 100644 (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