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
This commit is contained in:
Dan Christensen 2024-10-11 15:31:52 +02:00 committed by Robert Pluim
parent c436d4eff9
commit 5c129791c5

View file

@ -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))