Propagate marks to the backend for unknown groups.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 24 Oct 2010 04:28:05 +0000 (06:28 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 24 Oct 2010 04:28:05 +0000 (06:28 +0200)
This is mainly useful for nnimap groups.

lisp/ChangeLog
lisp/gnus-sum.el

index 6b880ad..fa4f437 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-group-make-articles-read): Propagate marks to the
+       backend for unknown groups.  This is mainly useful for nnimap groups.
+
        * gnus-agent.el (gnus-agent-fetch-group): Don't download stuff if the
        group isn't covered by the agent.
 
index 7cd1993..7380ccc 100644 (file)
@@ -6190,7 +6190,13 @@ The resulting hash table is returned, or nil if no Xrefs were found."
         (info (nth 2 entry))
         (active (gnus-active group))
         range)
-    (when entry
+    (if (not entry)
+       ;; Group that Gnus doesn't know exists, but still allow the
+       ;; backend to set marks.
+       (gnus-request-set-mark
+        group (list (list (gnus-compress-sequence (sort articles #'<))
+                          'add '(read))))
+      ;; Normal, subscribed groups.
       (setq range (gnus-compute-read-articles group articles))
       (with-current-buffer gnus-group-buffer
        (gnus-undo-register