From 87f5bece27440f41ff449112f3b90ffb8e610745 Mon Sep 17 00:00:00 2001 From: Dan Christensen Date: Fri, 11 Oct 2024 15:31:52 +0200 Subject: [PATCH] Report correct unread count for nnimap groups * lisp/gnus/nnimap.el (nnimap-request-group): Use '(1 . 0) range as default, and calculate the actual range the same way as other backends. (Bug@72949) Copyright-paperwork-exempt: Yes (cherry picked from commit 5c129791c5b1639481c109cc44974c7d9b7f3dcf) --- lisp/gnus/nnimap.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 7b0e42ff89d..16ed338a0de 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -918,10 +918,10 @@ during splitting, which may be slow." (nnimap-finish-retrieve-group-infos server info sequences t) (setq active (nth 2 (assoc group nnimap-current-infos))))) - (setq active (or active '(0 . 1))) + (setq active (or active '(1 . 0))) (erase-buffer) (insert (format "211 %d %d %d %S\n" - (- (cdr active) (car active)) + (max (1+ (- (cdr active) (car active))) 0) (car active) (cdr active) group)) -- 2.39.5