Fix the logic for copying read-ness to the backends.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 16:45:58 +0000 (17:45 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 16 Dec 2010 16:45:58 +0000 (17:45 +0100)
lisp/ChangeLog
lisp/gnus-sum.el

index 6120ae5..f1b8697 100644 (file)
@@ -1,5 +1,8 @@
 2010-12-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-summary-push-marks-to-backend): Fix the logic for
+       copying read-ness to the backends.
+
        * nnimap.el (nnimap-quirk): New function.
        (nnimap-retrieve-group-data-early): Use it.
        (nnimap-quirks): New alist.
index a021728..ceaa014 100644 (file)
@@ -9958,7 +9958,7 @@ ACTION can be either `move' (the default), `crosspost' or `copy'."
 (defun gnus-summary-push-marks-to-backend (article)
   (let ((set nil)
        (marks gnus-article-mark-lists))
-    (when (memq article gnus-newsgroup-unreads)
+    (unless (memq article gnus-newsgroup-unreads)
       (push 'read set))
     (while marks
       (when (and (eq (gnus-article-mark-to-type (cdar marks)) 'list)