From: James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 72949@debbugs.gnu.org
Cc: eric@ericabrahamsen.net
Subject: bug#72949: [PATCH] Wrong unread count in the Group buffer in nnimap
Date: Mon, 02 Sep 2024 11:29:12 +0530 [thread overview]
Message-ID: <868qwar3yn.fsf@gmx.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
I haven't tested this patch (don't really know how to), but this could
very well be the cause of this long-standing bug:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: [PATCH] Correct empty mailbox active count --]
[-- Type: text/x-patch, Size: 865 bytes --]
From 6676798c2a60094ddb8a7476bbbf611d9e7d644c Mon Sep 17 00:00:00 2001
From: James Thomas <jimjoe@gmx.net>
Date: Mon, 2 Sep 2024 11:23:11 +0530
Subject: [PATCH] Correct empty mailbox active count
* lisp/gnus/nnimap.el (nnimap-request-group): Make the change.
---
lisp/gnus/nnimap.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 7b0e42ff89d..8e4ad45c62c 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -918,7 +918,7 @@ nnimap-request-group
(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))
--
2.43.0
[-- Attachment #3: Type: text/plain, Size: 16 bytes --]
Regards,
James
next reply other threads:[~2024-09-02 5:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87h6g7mm8r.fsf@debian-hx90.lan>
2024-09-02 5:59 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-09-02 6:22 ` bug#72949: [PATCH] Wrong unread count in the Group buffer in nnimap James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 7:41 ` Eli Zaretskii
2024-09-11 1:25 ` bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-11 12:39 ` Dan Christensen
2024-09-12 1:10 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <861q1p1gg2.fsf@gmx.net>
2024-09-14 17:46 ` Dan Christensen
2024-09-14 19:42 ` Andreas Schwab
2024-09-14 21:07 ` Dan Christensen
2024-09-14 22:13 ` Andreas Schwab
2024-09-14 23:17 ` Dan Christensen
[not found] ` <87seu2xqpa.fsf@uwo.ca>
2024-09-14 17:46 ` Dan Christensen
2024-09-15 10:00 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-15 12:49 ` Dan Christensen
[not found] ` <871q1lw089.fsf@uwo.ca>
2024-09-15 21:55 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-15 23:07 ` Dan Christensen
2024-09-16 0:51 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-16 8:26 ` bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server, bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server, " James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-16 12:42 ` Dan Christensen
[not found] ` <87cyl3u5vo.fsf_-_@uwo.ca>
2024-09-17 4:06 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-17 22:37 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-17 23:03 ` Dan Christensen
2024-09-18 2:27 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=868qwar3yn.fsf@gmx.net \
--to=bug-gnu-emacs@gnu.org \
--cc=72949@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
--cc=jimjoe@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).