From: James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Dan Christensen <jdc@uwo.ca>
Cc: "72949@debbugs.gnu.org" <72949@debbugs.gnu.org>
Subject: 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, bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server
Date: Mon, 16 Sep 2024 13:56:36 +0530 [thread overview]
Message-ID: <86plp4ovgj.fsf@gmx.net> (raw)
In-Reply-To: <871q1lw089.fsf@uwo.ca> (Dan Christensen's message of "Sun, 15 Sep 2024 12:49:27 +0000, Sat, 14 Sep 2024 17:46:52 +0000, Sun, 15 Sep 2024 15:30:40 +0530")
Dan Christensen wrote:
> On Sep 15, 2024, James Thomas wrote:
>
>> Dan Christensen wrote:
>>
>>> (max (1+ (- (cdr active) (car active))) 0)
>>
>> Just wanna chime in with what's in (info "(gnus) Required Back End
>> Functions"):
>>
>> Gnus just discards the total-number, so whether one should take the
>> bother to generate it properly (if that is a problem) is left as an
>> exercise to the reader.
>
> That's interesting. I wonder if it is still correct.
>
> As I mentioned in an earlier message in this bug report, without that
> line of the patch, Gnus gives me an error. Without that line, Gnus
> would calculate the total number of articles as -1, and this line
> from gnus-start.el would fail to match because of the minus sign:
Wait! I think we've miscommunicated: I'd meant the _other_ patch, the
one in (gnus-summary-goto-article "<86zfoqpobd.fsf@gmx.net>"). I use
that and it's working fine here.
Dan Christensen wrote:
> On Sep 12, 2024, James Thomas wrote:
>
>>> Sorry! I got confused again... Please try the other patch in that bug
>>> report (the one that swaps the car and cdr). I find that it works with
>>> your use case!
>
> Yes, that patch fixes the problem I've had for ages. But I don't think
> that it's correct. Here's what is done in nnml.el:
>
> (nnheader-insert "211 %d %d %d %s\n"
> (max (1+ (- (cdr active) (car active))) 0)
> (car active) (cdr active) group)))))))
>
> Notice that the car comes before the cdr, and that you have to add 1
> to the difference between the cdr and the car, since if the active
> range is 2 . 3, then there are 2 active articles, which is one more
> than 3 - 2. So I suspect that the patch attached below might be
> correct. Someone who knows more about what the "211" line should
> contain should review this.
>
> My patch also fixes the problem I've had. With either patch, after
> moving or copying an article to a new group, the new group has (active 1
> . 1) as expected, with no unexist entry.
>
> But the two patches would behave differently when active was already set.
>
> Dan
The total shouldn't need any change for these reasons below.
James Thomas wrote:
> Just wanna chime in with what's in (info "(gnus) Required Back End
> Functions"):
>
> Gnus just discards the total-number, so whether one should take the
> bother to generate it properly (if that is a problem) is left as an
> exercise to the reader.
>
> --
>>>> I see that many other parts of Gnus do a correct calculation of the
>>>> total number of articles
>>>
>>> Wrt this function?
>>
>> Yes, for example, the code from nnml-request-group that I posted
>> earlier in the thread, and other places that have "211".
>
> No, I mean something that _uses_ that value? The only function I can
> find is 'gnus-browse-foreign-server' which doesn't.
Could you try again with that patch and a clean newsrc?
Regards,
James
next prev parent reply other threads:[~2024-09-16 8:26 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87h6g7mm8r.fsf@debian-hx90.lan>
2024-09-02 5:59 ` 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-02 6:22 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 7:41 ` Eli Zaretskii
2024-09-28 8:49 ` 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 ` James Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
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
2024-09-24 12:50 ` Dan Christensen
2024-10-01 20:50 ` Dan Christensen
2024-10-01 21:30 ` Stefan Kangas
2024-10-01 22:25 ` Dan Christensen
2024-10-02 16:55 ` Robert Pluim
[not found] ` <87ed4y1m2n.fsf@gmail.com>
2024-10-11 13:36 ` Robert Pluim
[not found] ` <87set2u5g4.fsf@gmail.com>
2024-10-11 13:45 ` Dan Christensen
[not found] ` <87zfnazrbz.fsf@uwo.ca>
2024-10-11 13:51 ` Robert Pluim
2024-10-11 15:39 ` Eli Zaretskii
2024-10-15 8:28 ` Robert Pluim
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86plp4ovgj.fsf@gmx.net \
--to=bug-gnu-emacs@gnu.org \
--cc=72949@debbugs.gnu.org \
--cc=jdc@uwo.ca \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.