(gnus-get-unread-articles): Make sure all methods
authorSimon Josefsson <jas@extundo.com>
Thu, 9 Dec 1999 20:11:48 +0000 (20:11 +0000)
committerSimon Josefsson <jas@extundo.com>
Thu, 9 Dec 1999 20:11:48 +0000 (20:11 +0000)
are scanned when we have directory mail-sources (the mail source
is modified in that case, so we must scan it for all
groups/methods).

lisp/ChangeLog
lisp/gnus-start.el

index 67511f2..9df07b9 100644 (file)
@@ -1,3 +1,10 @@
+1999-12-09  Simon Josefsson  <jas@pdc.kth.se>
+
+       * gnus-start.el (gnus-get-unread-articles): Make sure all methods
+       are scanned when we have directory mail-sources (the mail source
+       is modified in that case, so we must scan it for all
+       groups/methods).
+
 1999-12-09 12:05:28  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * nnml.el (nnml-request-move-article): Save nnml-current-directory
index 137db8c..405bd8d 100644 (file)
@@ -1550,7 +1550,15 @@ newsgroup."
                  (setcdr (assoc method retrievegroups)
                          (cons group (cdr (assoc method retrievegroups))))
                (push (list method group) retrievegroups))
-           (if (member method scanned-methods)
+           ;; hack: `nnmail-get-new-mail' changes the mail-source depending
+           ;; on the group, so we must perform a scan for every group
+           ;; if the users has any directory mail sources.
+           (if (and (null (assq 'directory
+                                (or mail-sources
+                                    (if (listp nnmail-spool-file) 
+                                        nnmail-spool-file
+                                      (list nnmail-spool-file)))))
+                    (member method scanned-methods))
                (setq active (gnus-activate-group group))
              (setq active (gnus-activate-group group 'scan))
              (push method scanned-methods))