From: Dan Christensen Date: Fri, 11 Oct 2024 13:31:52 +0000 (+0200) Subject: Report correct unread count for nnimap groups X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=87f5bece27440f41ff449112f3b90ffb8e610745;p=emacs.git 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) --- 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))