bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#72949: Gnus sometimes reports new messages but not showing them on I


From: Dan Christensen
Subject: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server
Date: Tue, 17 Sep 2024 23:03:12 +0000
User-agent: Gnus/5.13 (Gnus v5.13)

On Sep 18, 2024, James Thomas <jimjoe@gmx.net> wrote:

> James Thomas wrote:
>
> In fact, is the max needed? Wouldn't this work as well?

This is about the line

  (max (1+ (- (cdr active) (car active))) 0)

The max is there in case active contains a pair like (10 . 8), for which
(1+ (- (cdr active) (car active))) evaluates to -1.  While this seems
unlikely to happen, at least two other backends use the above code to
guard against it, and it seems wise to be generous in what we accept.

This is especially true because gnus-parse-active does not accept
negative numbers.

Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]