From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.bugs,gmane.emacs.gnus.general Subject: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server Date: Tue, 17 Sep 2024 23:03:12 +0000 Message-ID: <87zfo5rihb.fsf@uwo.ca> References: <87h6g7mm8r.fsf@debian-hx90.lan> <86h6ah2q47.fsf@gmx.net> <87h6g7mm8r.fsf@debian-hx90.lan> <868qwar3yn.fsf@gmx.net> <86h6ankmm6.fsf@gmx.net> <87r09q1i0s.fsf@uwo.ca> <868qvx1xst.fsf@gmx.net> <861q1p1gg2.fsf@gmx.net> <87h6g7mm8r.fsf@debian-hx90.lan> <868qwar3yn.fsf@gmx.net> <86h6ankmm6.fsf@gmx.net> <87r09q1i0s.fsf@uwo.ca> <868qvx1xst.fsf@gmx.net> <861q1p1gg2.fsf@gmx.net> <87seu2xqpa.fsf@uwo.ca> <87frq2xh4c.fsf@uwo.ca> <871q1lw089.fsf@uwo.ca> <86plp4ovgj.fsf@gmx.net> <87cyl3u5vo.fsf_-_@uwo.ca> <86zfo69b52.fsf@gmx.net> <86setx3o07.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28357"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "ding@gnus.org" , "72949@debbugs.gnu.org" <72949@debbugs.gnu.org> To: James Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 01:04:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqhF0-0007Fi-0W for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 01:04:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqhEd-0004tX-Sr; Tue, 17 Sep 2024 19:03:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqhEZ-0004sz-GN for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 19:03:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqhEZ-0005uX-72 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 19:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:In-Reply-To:References:Date:From:To:Subject; bh=4rhafpWaY++nLgSrQV59i7iEHaG5HJJqI5UK++uN2lM=; b=rwOcR3cMvMLDxfcAcbwdY0NvWDH73xyP8WTS9/b9QaK2I+hdeHSSNdQdNby4OrbCISLYHPAcebl5f4TNegMHZDhna4xNPk4iDR8X1u8bCoqsNd4f4CXh8uBR4QwJ1K8KBJft8VhykTuDGfF+qVQYTEDlqxkoDVVOKwoUmnqkiFf339Y/ixxnA/74vfPxm3t61QwzLxGAHv7PcnUcKPRRuBMfe1jHsDB0KTZKeWlTg3hxw+Op569X+lkjB0w4EWekYibYRgFk4wHalPbi4lEJGU8GTdxXu4gdPrzaKdAS/b2b0Dq8YRshHwlFAd60gceNq2gpA1QU2CYsJD6EoPlSxA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqhEo-0003Xd-4x for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Christensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 23:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72949-submit@debbugs.gnu.org id=B72949.172661421813578 (code B ref 72949); Tue, 17 Sep 2024 23:04:02 +0000 Original-Received: (at 72949) by debbugs.gnu.org; 17 Sep 2024 23:03:38 +0000 Original-Received: from localhost ([127.0.0.1]:56212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqhEQ-0003Ww-8N for submit@debbugs.gnu.org; Tue, 17 Sep 2024 19:03:38 -0400 Original-Received: from mail-yqbcan01on2135.outbound.protection.outlook.com ([40.107.116.135]:43365 helo=CAN01-YQB-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqhEN-0003Wc-GP for 72949@debbugs.gnu.org; Tue, 17 Sep 2024 19:03:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ea23dC4+68wq6HK+7V1rYHXjxZpCyy0FcyRj6AbDNCkvxAfXhbfTaDtGTgiyeRhUNjutzlTbEnIkqN7E6vUrPtowHscWS6LTonrdNemolCokmP6+b2OlRv5GpN3PL6eiHHmhHF+NdIYrzxJBP3uxqeQSdkTmq3rwa2B0aBNEPai4yTF6SHe/NgOiR8euEtP1w5FmoDLZD/JmyFHcB0wkT/IDLv2A67hwjbFmzafogAmx4I7PA/fLdhTCxwuflqYK8HtjS4q3Xujw8p7rCsavOsY4hZwR1sEV3Xu1fS1jYedNzDBzHkgetff1Cx6haHuRQkcZ8XQOsUO447a2cCCWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4rhafpWaY++nLgSrQV59i7iEHaG5HJJqI5UK++uN2lM=; b=WOuArw+bEAB4l/AK7ZGy83JqF22gT8jZRZ1Rk6K+uQvgLzjcztcMMAbu2l9VmtrTPb9FmKwIytoNfAJ6an6qME+3eh1fkwGrNKoTV9vLdLdt+Wba3IWy6CBEmyKI6IBqcrbDo2N2MCkhd2SYzZVHSVpQFiMNl76PXtIsP62MFlRxah2Rg4adI5sirUBK17lZA1Ta1hTXHMVhxsvlDsqIrowdDZr+xG6+S0aWp/DbWoGUU23HWM9UZgCrQrsRRTmZ17i65IHthsrPCP7BpHtFB5WY1iY4R6QpHDhi3Yo6XFsuKS9Mlmx4XcJbYzV8jWjYTGrVpq9hvWuup6fOsHsKjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uwo.ca; dmarc=pass action=none header.from=uwo.ca; dkim=pass header.d=uwo.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uwo.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4rhafpWaY++nLgSrQV59i7iEHaG5HJJqI5UK++uN2lM=; b=c51gP5zV++gy8IvMRoM3QKo9HCpuvxFy2sswDjXKr79jffSQAuN7bru6fsC6yknZMOEZzZufjYJCCbbS9lTzeLakGY4d2uBvFVrGCIQqDrZMQtu3Qn3N2MnUk0257/NP9g77r3L/RxMxbTVDQaeYCZH+1RmM/GDvtsmiGpQeq4JvAd9/v82eleVaB2O6OM6U4NEw+cfa3lklCi7Qi4Ju3hVt0AvlU4Hy9zT+lHY+B5kgZb0cIJvmuRJ6cIcKDroijwYJgmqz2i9RCT4TvjVfTCjEhjX8KjmleKigW7kgVNCsaYBPJZpbGc2pUHmNc1dgM6TloY97duOILddCZ+oujA== Original-Received: from YT2P288MB0089.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:f6::13) by YT6P288MB0770.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:11e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Tue, 17 Sep 2024 23:03:12 +0000 Original-Received: from YT2P288MB0089.CANP288.PROD.OUTLOOK.COM ([fe80::3a82:13b8:bdd2:9071]) by YT2P288MB0089.CANP288.PROD.OUTLOOK.COM ([fe80::3a82:13b8:bdd2:9071%4]) with mapi id 15.20.7962.022; Tue, 17 Sep 2024 23:03:12 +0000 Thread-Topic: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server Thread-Index: AQHbCVXFP/huvmBMq0u4d47lfjxbHg== In-Reply-To: <86setx3o07.fsf@gmx.net> (James Thomas's message of "Wed, 18 Sep 2024 04:07:44 +0530") Accept-Language: en-CA, en-US Content-Language: en-US authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=uwo.ca; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT2P288MB0089:EE_|YT6P288MB0770:EE_ x-ms-office365-filtering-correlation-id: bf97f049-2f0f-450c-0e44-08dcd76ce7fe x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: c918eZrbPlUaRIGg8RsTx9e5m3wKR8I3iXWTUMHqmnaVrvuriGK5Xh2HBIh1WfvjUAG6HKnrylvo+7zxZHYZc6fwQg3Czygy3H7o5HeOM1tsx42OFms81ibsSz8hgW1DK5BcQWVv4nVABq9zVzU7FGFlwc348tXipCT+caPKqhNL+ZFh0WFgxaoZ1MqycvThnRRN1nNEXwt4PmghYE37VBiOG5wewKlo1m0d+4NLmY6Vr7RsIKZHnZ2idSuVgVQBz+TN3lHcpQi09QAUrile6n1/41lCejNP58UG0nvigSNZSioAEZHkl9FFNYuTaJJPB851zmS36+shCn+jTiz0RYdFdEbD8XtTlVqXVRckRXBBf6Rxo+Ec3BQIGAXvTZrdfCSscvpFSbAqALvP3vOSVt4qgv8iuKtR/SDi81CDahQGJKFi6pJ59dAxAOFNaBVRdxFH0W3KJ4cJAyUd9WMPFaMIYJPOEiYH72DD16rQ3gDhUNSnxQHO10CDiYxiwFeDS5NgtUxL4JyXGr47fSF8dSxzz6nyrIfzLyU7sA3TJYDUGhPDlu95fXQ8uCb6OzFvzR5KfINm9ap2W7N9GuP/QkfQ3pHTydXy6VVgZaOVR1H60ol5bj0lKPSKvamPo8z5pwS2WrXCSAannA9Og0Bd2c0TUk6RSk8nIeqpn1yBOfPUGYhlne0QQi1UYvPF2fz9yBthq5Vht1khxL6a8EipsA3WM9lhAQI3XNQc8p5GOahd5skPfV0wwv+JjSQyN jdn121ij1dzDmJ+4H6Eo6LxTJfFm6h0o3rXPO1p8UUdxY2e2I5jajp/VCIjvW6dOPHQBUDJ2mrtFlhBXXsrvA1+QuA/jeoORvp x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT2P288MB0089.CANP288.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: um1NUwIfoh5O7Pk64umP/M3rt0as8N5l/Ty3BDjOA6euUUaY5wOuJsAS5sIXFrUkFcRQGqqjv/Ft2HDf5wwoExiDJajOkLzFzjCJ+4r9Pk6YI6YcoqBRsZ9EzJZZ7bgyIeOnZp+8dr74jGauNHnxKhojPgZrI/aw9/w4cJ6vC+IgOgI5lOG9ud57orv8wRhREFPIaYh1+tB+k0Q+UnALWXHbRaYPUfkBHuDbLFBMcCLemvuC6ZmNnev2cehQzQSedR2CyJIBNaFR+5TG2EHHryRoAxEtV4euoKkDGj/DIUzQegbEGvXVZ71ftTAyH/AA6JzOcPbgCxjo10BzW+ShaHynwM9wIVYUOmbZ/MieJdxr7U7wfeeUK0jaJ8UnJGQt90xIzVohD5VLFZLnNMluXFB8Bij9H7WUgwTqXrmofx3/V9vCMyvs5+YbMlCUwmS6dziDM4Mr+X6G6BvkTfmaDp3z+UK7tmmMFWeKSQpG7SpXmMjqkEDBFdTvivNFrUkTfc6CTz6mG6CWkHaYJ2iHJIrVeU5qJSFcGC0FxoBVIK7OWoR3gzR0nw1pZHpojDdRgoRbM2tdrR4408Y+hbaM3iMR064GteUU0MossNHkhPdzpFdwlkR/esrndo0RT1QpO+IzUNuauZ20zfct8zczchyj2h48DtZwhVayVUbWM/tN0mLmGlkpK2Eb4RDZUlIO2WMJ+a0Gow7edlF77aNKM4CS7yVNNkRUnl7pSl+NOU/5j27uPXtzDsDmTG jXYsFGcQlFCT7e3Zk7j8dwLGHLWSgotYGv5aeokmSci9+85aC9abaCCbKBY1IhpH8FdOYeCsmscUcPljlPI9MrPMqQPxpkl0tt X-OriginatorOrg: uwo.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT2P288MB0089.CANP288.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: bf97f049-2f0f-450c-0e44-08dcd76ce7fe X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2024 23:03:12.8092 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ad93a64d-ad0d-4ecd-b2fd-e53ce15965be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mGq3gctCrefCdY8GP7r82qQch77MGp+Li2mKmLX5da+LTXwSnkCjnKfCoLu+x5N3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT6P288MB0770 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291983 gmane.emacs.gnus.general:91626 Archived-At: On Sep 18, 2024, James Thomas 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=