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 Subject: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server Date: Sat, 14 Sep 2024 17:46:59 +0000 Message-ID: <87frq2xh4c.fsf@uwo.ca> References: <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> 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="16197"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: "72949@debbugs.gnu.org" <72949@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 19:48:01 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 1spWsK-00044R-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 19:48:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spWsF-0001T6-1u; Sat, 14 Sep 2024 13:47:55 -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 1spWsC-0001SZ-HL for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 13:47:53 -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 1spWsC-0001O5-7X for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 13:47:52 -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:References:Date:From:To:In-Reply-To:Subject; bh=/4WZMuIkhGALvT3khPnTv03z4Ngr1QvCJYWzRzxo0so=; b=g0107dXyoD20zwu+B3rVW92cRiAbv7GxTnC7m5/eQqs7Ks1VzJQ/5U1SEOayhrk5TO7WfKcbLgkP3lFauUeijF/Qu7akjMzwEjyX70xfeZou3aXPe1bVlmQ34ZpE2VmOyT1c2+UWlr+/yxVeeLJ93ChDmomRXeawCsrJQk3zpj0DpKpa3S3QWIHKJLHY0F0nwH5BOnO8rE5Rm4bzm4W1cTFIY+jP9qAmpdoiY0G4afNEs61zSpHEqFSaj5GmkCORIxacm4CtKkUCC9M7aAQEeyPEGUCX4HS8oAnnDs2DjZ20z357S5LpKdlgcGM0COEPBuXaUYRLKAeFBP4VP35HEg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spWsM-00059V-SH for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 13:48:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <868qwar3yn.fsf@gmx.net> Resent-From: Dan Christensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 17:48: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.172633603919718 (code B ref 72949); Sat, 14 Sep 2024 17:48:02 +0000 Original-Received: (at 72949) by debbugs.gnu.org; 14 Sep 2024 17:47:19 +0000 Original-Received: from localhost ([127.0.0.1]:47766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spWre-00057y-MK for submit@debbugs.gnu.org; Sat, 14 Sep 2024 13:47:19 -0400 Original-Received: from mail-yt3can01on2110.outbound.protection.outlook.com ([40.107.115.110]:50449 helo=CAN01-YT3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spWrY-00057J-Er for 72949@debbugs.gnu.org; Sat, 14 Sep 2024 13:47:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DEiAAq1y1xd+6p1h54/vLFD23YhikKLbfps85sNksltXfwccAz8g8K8raMtgjY4exu0fqXPsVwDxSRNEdjDHe9R4UbdV+fGH0e8aYL5lQUJa9CUMUEqaC+cQDXV5xiu/gP9SHD4NLqA0shFFDuOYYkdr4dI3MR2vpIPeDhL5lGyGcRDoQVcl6Vw0frfuUsKVMKIowTUMeGs9TbQiVBMwsGEyxHrbQewVu0b+Xip+uGkvsxW9917MUxuTau7NvneH838SOhBjboSQVr+gYMiXaiVlLZOe6C4qBLoMzImDzzrqLQfxnkJ32aG2oEB1aitUi+cGsEnRw1OIYRHxFoK2Fw== 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=/4WZMuIkhGALvT3khPnTv03z4Ngr1QvCJYWzRzxo0so=; b=KaH6Zz7DFhP6XulV/33Lgk8xOTsEkchxK8goOfVAz+t/8kaLqZxpVN7pN9QF151j+Q4cfY13SKhEU3jqXqyfs7IPnMc0Fk6kXnprdk+1lMHX313V96pUofBlC6Q3uWiLqQjuWuNK8L7TGLXp3NnatfqmvtXv5xpRtN9KrAuTNZ4IP2sFHEccxuoQwomcYMz3/hccoXEiuH8crUCIhz2cQcatLk87TjRXtYXD45+pJYC5zZQdkOPMLqhblXFcbfV8qgJwsWJ+iTJJF5kab171DhXphOa1UYbneWZJutlo5UvF5nO6LdGqKK4MDJjVg/z0UMo1sCmuJ2PMozp6cftsAw== 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=/4WZMuIkhGALvT3khPnTv03z4Ngr1QvCJYWzRzxo0so=; b=arjy2I3nxSp0q5xYXBdAI/Kws18HPNrZcbv/n+F/muJ156Cdd8dH1Krb5orUE8xcD9zBC845lkhnkm1oP8ZSZUwD01lrfXmAK5ggjUoB2mC7/fDDpwgJykXErON5pfYpmJuCRLPNF6JJjSQaoF4kAG0Cj6okM79K9poOui7TZrNxYDRcv/mhBDLiX14ThPQGPn3hKIKgomQGeJSq439G+UiqzpZxr5EgXaPIlIKFlBTAQnxscFUsXVj85gWBiPgy3+ydhay5D7vDi29xkVoe+C4ewAebnmcIOMpPli3/R6pDXqnOoHG6dIJ5uX3uPnlUNaozuI+3cGkjA6W9RG1CLA== Original-Received: from YT2P288MB0089.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:f6::13) by YT6P288MB0543.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:121::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.22; Sat, 14 Sep 2024 17:46:59 +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.021; Sat, 14 Sep 2024 17:46:59 +0000 Thread-Topic: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server Thread-Index: AQHbBs4ZTDQEBOWlXkCTAvr8JSpL+Q== Accept-Language: en-CA, en-US Content-Language: en-US X-Auto-Response-Suppress: All dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/4WZMuIkhGALvT3khPnTv03z4Ngr1QvCJYWzRzxo0so=; b=lHn8qKcVYMNS7GHi995+VdzHnC 52QaoASVrBJMkWZyTPFN/REmSixYh6jt+xCPrpsun7ywg2sSsLDatcFioov4lcQHB10RzPp+TRsv7 X9qMGes6oHyuX/Qnx5RkXxhIpOkl0qhuWsrq76TxVNfdbbqNH8OLCHDWNJWwht7R7roU=; authentication-results: dkim=error (no key for signature) header.d=none;dmarc=none action=none header.from=uwo.ca; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: YT2P288MB0089:EE_|YT6P288MB0543:EE_ x-ms-office365-filtering-correlation-id: 722d9f4d-6bcd-466a-2695-08dcd4e53bd1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: 7PgEk2jExVgTM6RWr2wgHUXRMUPzydwFSc6+RQ0H1XS57DN5TQbiX7SWq4IaG9TEV7Jbdmh4HNuiV0HE8MPdgInLVmxrIN5eMkcQDM6xGgQE5t3MDoxBBta7AKtmDJivXDStSBPLiKL6b/1rQGu3U7VaoMG19+G8EFBIEhaJueh0Fzag7h0++nQc15RfmmVbGYOloGFPgUmmxXcq6fHhbyx4QcOd1TTwN/TIyfq5qSQa11nC5if+E2dyoTTFkl/kt+FbbPFpLRntnuOGutXQrNtasIRj+1f++RnhNf0rgNIFl5B7/cNVJyX5KK6zAqmr52vUOmDtw8fspMm7nPwWYrRcE1HtzQRrPCGDg/WYwXaT46bFs5DZM1oqCiVERJuWbSzECOI+Y2t19BHVv018mca3+xJW6qiqmLMbciuMzgk9ljjWAMhG6IoiuYjZRH/SyTf003FJxT56ZPQY4aL9uRsD2lyPxgn4XcxEjviAe/Ohvy2xAVRBoBJAWl7o3VPNcVQZETEcSZp+vkf3DOBkylkPJUIgF4gk3yZu5FSEi1G22U/n71YukmU8eZxHh2FCRDSKii8vFSi/6i5qNYiPVJNls3qci31jpMKjRBxIG5Gaxu+EfopOAhO4ETrQHKwQcM7s3/hjY6lzJFo3t0mEa8eL9cpLa1UObeiG8R1fPMN/Fst/Arfr5cOp5e6etRKqoD639lKVQpBjmZ2WDygWwdrVqcbwrLdTqcIGWVu2vEBYWst0nyJcgeSooNvBX nHEjouhtwmLQgZBv3w5hYI/OHNLA04ZmusMD3QZ4uMg48SS2Ps57PWvmBLDuK8yD3nBdPjF5OI8+u8adpbFgR81QWwxW7guDzw 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)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: JqY4uCezaPgmU1PmV/5SCu8f+oXYvl7x8G32leamsWIQUnOAUWoanL82haBCBOO48krFNZhj31mG37a3RRqiob7rSPsLJBmlYSAthhS+u288aV5YH3O+dHtd+P23cBO2F35CTctCR9/uGnfCa7jsclA+qrJWrDWkv2eBrOwj3y+T21xymgYRDPVbo/b0C17bhZVtrHURgemvcu2P3JoGCFkSAAdKDaET7luKj7c7Xdos+M1r4XG6yB2A9SNafRN3mPp+JUf4cTrWe5RXKH7N3ePy8fxHRm75RrenV6DYRT+CzRHCCT/b/WzvvIrkKz45DmL+lrrsd6o+9SrAJqtNzM60k99GhHxxAozaTdhdkefwf9t1XmCHjeGSKHKcMuzXQXmtPHEGXc39nYSz9E7Q5SgYYkPku2e1IXla01ugpr4YRih3OM5D/rBoGE6Celz/D7KK2NI94ZHI0BtcnBsoLRSyxU+dlSxycFk5VinVrvSvTKTsaNMV0rJ5QPrjBH+kUtLBTtQx3Q61xffJybJrSKHWMgM2Jnu6TW3uh8R4OkFcRodxRp/ROr9LhPc2cWOHqJMp4X9ErNZboqqASLpkQumSaufc2tdZ9pHLjOJYVMFoViZuAAjIRG1/+wbh4MYtWxjdTmkvEIHy6FMCfbFdCeDUC1dI51mRzh7xWBqDTEv7LvllnG/HywUdu9vpnBBEXah9UTrmOpx0zSdFMtSjAYpD+sPyN4TaUAfSdoI8PHrP8VQDu1prjIQaBC nlhd+X1pgoWcoxfQRprnMn2j/vXIz4tLy8Nkxfxca6Kksdn/kF1nn4WT0rkeijmKjm2dzMttJjopjnxqmkD4neQtbwZSstociT 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: 722d9f4d-6bcd-466a-2695-08dcd4e53bd1 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2024 17:46:59.5599 (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: PYtZxOvktNHtw1tZOALfvVMoYQ7wEbg19X5VDgU63CzKZluhP5r0w7sqaBdaFSOO X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT6P288MB0543 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:291795 Archived-At: An alternative to (max (1+ (- (cdr active) (car active))) 0) would be (range-length active), I believe. (Untested.) That function assume that the range is well-formed, so doesn't use max to avoid negative numbers, but that's probably fine. (range-length '(1 . 0)) does correctly return 0. Dan