Read the active files thoroughly for all backends that have no known
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 31 Jan 2011 02:12:33 +0000 (18:12 -0800)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 31 Jan 2011 02:12:33 +0000 (18:12 -0800)
groups.

This should allow new nnml methods to retrieve mail, for instance.

lisp/ChangeLog
lisp/gnus-start.el

index 2ec51ef..f9dbec8 100644 (file)
@@ -1,5 +1,9 @@
 2011-01-31  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-start.el (gnus-read-active-for-groups): Read the active files
+       thoroughly for all backends that have no known groups.  This should
+       allow new nnml methods to retrieve mail.
+
        * gnus-group.el (gnus-group-jump-to-group): Allow jumping to groups
        that Gnus doesn't know exists again.
 
index e2dff45..3879df3 100644 (file)
@@ -1743,11 +1743,13 @@ If SCAN, request a scan of that group as well."
     (cond
      ((and
        (gnus-check-backend-function 'finish-retrieve-group-infos (car method))
+       infos
        (or (not (gnus-agent-method-p method))
           (gnus-online method)))
       (gnus-finish-retrieve-group-infos method infos early-data)
       (gnus-agent-save-active method))
-     ((gnus-check-backend-function 'retrieve-groups (car method))
+     ((and (gnus-check-backend-function 'retrieve-groups (car method))
+          infos)
       (when (gnus-check-backend-function 'request-scan (car method))
        (gnus-request-scan nil method))
       (let (groups)