]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-start.el (gnus-get-unread-articles): Count the archive groups as secondary,...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 6 Sep 2010 00:20:42 +0000 (00:20 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Sep 2010 00:20:42 +0000 (00:20 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-start.el

index 419c26a02dc28ec18788a4b805a7c022ca6120d7..0beb0bcb2e00ff2cda4f139eafc4ebb38804d5d5 100644 (file)
@@ -3,6 +3,8 @@
        * gnus-start.el (gnus-activate-group): Take an optional parameter to
        say that you don't want to call gnus-request-group with don-check, but
        do check the reponse.  This is for virtual groups only.
+       (gnus-get-unread-articles): Count the archive groups as secondary, so
+       that they're activated the same way as before.
 
        * nnimap.el (nnimap-request-list): Servers may return \NoSelect
        case-insensitively.
index f99a1dcd9291f91935c693903117a98f3037cb52..56219542dbe3b0114af8c71868ddcdc4b315a30e 100644 (file)
@@ -1688,6 +1688,7 @@ If SCAN, request a scan of that group as well."
         (methods-cache nil)
         (type-cache nil)
         (gnus-agent-article-local-times 0)
+        (archive-method (gnus-server-to-method "archive"))
         infos info group active method cmethod
         method-type method-group-list)
     (gnus-message 6 "Checking new news...")
@@ -1723,7 +1724,9 @@ If SCAN, request a scan of that group as well."
       (unless method-group-list
        (setq method-type
              (cond
-              ((gnus-secondary-method-p method)
+              ((or (gnus-secondary-method-p method)
+                   (and (gnus-archive-server-wanted-p)
+                        (gnus-methods-equal-p archive-method method)))
                'secondary)
               ((inline (gnus-server-equal gnus-select-method method))
                'primary)