From: Andreas Schwab <schwab@linux-m68k.org>
Date: Sun, 7 Feb 2016 12:29:16 +0000 (+0100)
Subject: Revert "Fix gnus-group-get-new-news-this-group on group with closed server"
X-Git-Tag: emacs-26.0.90~2598
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a327bd99c1a9e52059b0216904ba30da210d711;p=emacs.git

Revert "Fix gnus-group-get-new-news-this-group on group with closed server"

This reverts commit 9dc77e37aa84c6df9b3ddb4609f3c09201b0580e.

This makes nnimap groups not be activated.
---

diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 8921a9c230a..c6f54da1211 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1829,9 +1829,7 @@ Return the server's response to the SELECT or EXAMINE command."
   (let ((open-result t))
     (when (and server
 	       (not (nnimap-server-opened server)))
-      (let ((method (gnus-server-to-method server)))
-	(setq open-result (nnimap-open-server (nth 1 method) (nthcdr 2 method)
-					      no-reconnect))))
+      (setq open-result (nnimap-open-server server nil no-reconnect)))
     (cond
      ((not open-result)
       nil)