Add some more nnimap-relevant agent stuff to nnagent.el.
2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * gnus-start.el (gnus-read-active-for-groups): Don't use the "finish"
+ method when we're reading from the agent.
+
+ * nnagent.el (nnagent-retrieve-group-data-early): New dummy method.
+
* auth-source.el (auth-sources): Add ~/.authinfo to the default, since
that's probably most useful for users.
(defun gnus-read-active-for-groups (method infos early-data)
(with-current-buffer nntp-server-buffer
(cond
- ((gnus-check-backend-function 'finish-retrieve-group-infos (car method))
+ ((and
+ (gnus-check-backend-function 'finish-retrieve-group-infos (car method))
+ (or (not (gnus-agent-method-p method))
+ (gnus-online method)))
(gnus-finish-retrieve-group-infos method infos early-data))
((gnus-check-backend-function 'retrieve-groups (car method))
(when (gnus-check-backend-function 'request-scan (car method))
(nnoo-parent-function 'nnagent 'nnml-request-regenerate
(list (nnagent-server server))))
+(deffoo nnagent-retrieve-group-data-early (server infos)
+ nil)
+
;; Use nnml functions for just about everything.
(nnoo-import nnagent
(nnml))
(completep (and start-article
(= start-article 1))))
;; First set the active ranges based on high/low.
- (if completep
+ (if (or completep
+ (not (gnus-active group)))
(gnus-set-active group
(if high
(cons low high)