Set the current nnimap group to nil, since EXAMINE changes it on the server.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 22 Sep 2010 17:22:48 +0000 (19:22 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Wed, 22 Sep 2010 17:22:48 +0000 (19:22 +0200)
lisp/ChangeLog
lisp/nnimap.el

index c12e9db..4743ebe 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnimap.el (nnimap-request-list): Set the current nnimap group to nil,
+       since EXAMINE changes it on the server.
+
        * gnus-int.el (gnus-request-expire-articles): Inhibit the daemon, since
        this command might take a while.
 
index 4a77836..904c0fe 100644 (file)
@@ -665,6 +665,7 @@ not done by default on servers that doesn't support that command.")
             (nnimap-get-groups)))
          sequences responses)
       (when groups
+       (setf (nnimap-group nnimap-object) nil)
        (with-current-buffer (nnimap-buffer)
          (dolist (group groups)
            (push (list (nnimap-send-command "EXAMINE %S" (utf7-encode group t))
@@ -715,6 +716,7 @@ not done by default on servers that doesn't support that command.")
                groups))
        ;; Then request the data.
        (erase-buffer)
+       (setf (nnimap-group nnimap-object) nil)
        (dolist (elem groups)
          (if (and qresyncp
                   (nth 2 elem))