From 3f0f0030e29249d9122ee390d21cc8aae1dfbb06 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 5 Sep 2010 19:28:23 +0200 Subject: [PATCH] (gnus-get-unread-articles): Count the archive groups as secondary. This makes sure they're activated the same way as before. --- lisp/ChangeLog | 2 ++ lisp/gnus-start.el | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d4f8ffd04..e6b1f74ba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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. * imap.el (imap-message-map): Removed optional buffer parameter, since no callers use it. diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index f99a1dcd9..56219542d 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -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) -- 2.25.1