# HG changeset patch # User Katsumi Yamaoka # Date 1283732442 0 # Node ID f9aca84de98518c7e92c8dcd3c3f9c6508d9b7f4 # Parent 5c9d7f960c310611ba1ceb951456160fdd6ddffe gnus-start.el (gnus-get-unread-articles): Count the archive groups as secondary, so that they're activated the same way as before. diff -r 5c9d7f960c31 -r f9aca84de985 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Mon Sep 06 00:15:13 2010 +0000 +++ b/lisp/gnus/ChangeLog Mon Sep 06 00:20:42 2010 +0000 @@ -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. diff -r 5c9d7f960c31 -r f9aca84de985 lisp/gnus/gnus-start.el --- a/lisp/gnus/gnus-start.el Mon Sep 06 00:15:13 2010 +0000 +++ b/lisp/gnus/gnus-start.el Mon Sep 06 00:20:42 2010 +0000 @@ -1688,6 +1688,7 @@ (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 @@ (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)