(nnimap-update-info): Rely more on the current active than the param
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 10 Oct 2010 19:37:34 +0000 (21:37 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 10 Oct 2010 19:37:34 +0000 (21:37 +0200)
active to avoid marking articles as read too much.

lisp/ChangeLog
lisp/nnimap.el

index 06f683c..ff8a947 100644 (file)
@@ -2,6 +2,8 @@
 
        * nnimap.el (nnimap-open-connection): Use gnutls STARTTLS, if
        available.
+       (nnimap-update-info): Rely more on the current active than the param
+       active to avoid marking articles as read too much.
 
        * auth-source.el (auth-source-create): Use (user-login-name) for the
        user name default.
index 99aee4c..775b1bc 100644 (file)
@@ -1066,8 +1066,8 @@ textual parts.")
       (let* ((group (gnus-info-group info))
             (completep (and start-article
                             (= start-article 1)))
-            (active (or (cdr (assq 'active (gnus-info-params info)))
-                        (gnus-active group))))
+            (active (or (gnus-active group)
+                        (cdr (assq 'active (gnus-info-params info))))))
        (when uidnext
          (setq high (1- uidnext)))
        ;; First set the active ranges based on high/low.