[gnus git] branch master updated: m0-13-35-g238e636 =1= nnimap.el: Explicitly ask for server capabilities

Eric Abrahamsen <[email protected]> Sun, 02 Aug 2015 07:17:12 +0200
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  238e63665cab7381691766c2bbdb5c16ab381c97 (commit)
      from  2eb3613948759b7b264ebd7f7d81b3b592bc381d (commit)


- Log -----------------------------------------------------------------
commit 238e63665cab7381691766c2bbdb5c16ab381c97
Author: Eric Abrahamsen <[email protected]>
Date:   Sun Aug 2 13:13:43 2015 +0800

    nnimap.el: Explicitly ask for server capabilities
    
    * lisp/nnimap.el (nnimap-open-connection-1): Don't assume full
      capabilities will be returned in the login-result.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 73fba70..e23bed2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-02  Nikolaus Rath  <[email protected]>
+
+	* nnimap.el (nnimap-open-connection-1): explicitly ask server for
+	capabilities instead of relying on LOGIN response.
+
 2015-07-31  Paul Eggert  <[email protected]>
 
 	* nnbabyl.el (nnbabyl-retrieve-headers):
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 161a6b4..594d1f5 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -490,7 +490,7 @@ textual parts.")
 			(funcall (nth 2 credentials)))
 		      ;; See if CAPABILITY is set as part of login
 		      ;; response.
-		      (dolist (response (cddr login-result))
+		      (dolist (response (cddr (nnimap-command "CAPABILITY")))
 			(when (string= "CAPABILITY" (upcase (car response)))
 			  (setf (nnimap-capabilities nnimap-object)
 				(mapcar #'upcase (cdr response))))))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/nnimap.el |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project