From 0661509959b5bf873e14519923ed74ade86925ac Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 10 Oct 2010 21:37:34 +0200 Subject: [PATCH] (nnimap-update-info): Rely more on the current active than the param active to avoid marking articles as read too much. --- lisp/ChangeLog | 2 ++ lisp/nnimap.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 06f683c1e..ff8a947e2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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. diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 99aee4cdd..775b1bc05 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -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. -- 2.25.1