From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72949: Gnus sometimes reports new messages but not showing them on IMAP server Date: Wed, 18 Sep 2024 04:07:44 +0530 Message-ID: <86setx3o07.fsf@gmx.net> References: <87h6g7mm8r.fsf@debian-hx90.lan> <87frq2xh4c.fsf@uwo.ca> <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> Reply-To: James Thomas Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21833"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "72949@debbugs.gnu.org" <72949@debbugs.gnu.org> To: Dan Christensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 00:38:59 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 1sqgqY-0005Qy-Ne for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 00:38:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqgqO-0001Ux-HH; Tue, 17 Sep 2024 18:38:48 -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 1sqgqM-0001UU-V4 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 18:38:46 -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 1sqgqM-0002Q9-MD for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 18:38:46 -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:Date:References:In-Reply-To:From:To:Subject; bh=FqgqQ0rl/FFZn+g16EF8p6gUI+DxnRKI8cEKPpLgNa8=; b=TMybMmpPip4p81RFKnvhuykyDjHqfl/u0S+TFSasxczigc7qi+3hoID4W6fSiH/qkfGVfC2oseCbLORr09sf1XlpNEtph6sE++YdCmVPzJUmpZuAmsvrGWD/xEgYvVOenSj5i58v9lYhZ3sbLGGLiwZG/qYL4EKHojsLg47kpKEsx6aaB6YBdWNBVXlkhqIPqc+3wRckoAXR2kkslYF+Op+gJwqhUS3Pjvlc5FuPl8FWmDccNvoxEH2cm4rvQVt5fxgjUCGDVDVnkcbN/0xY6+nXtyvtbmAxEf4OC9iz98UwBS+GvsEPi7lnYBAMqXqD6b3SFvu1xXqddALJUU5z2A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqgqb-0002Aw-RE for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 18:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 22:39:01 +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.17266126978278 (code B ref 72949); Tue, 17 Sep 2024 22:39:01 +0000 Original-Received: (at 72949) by debbugs.gnu.org; 17 Sep 2024 22:38:17 +0000 Original-Received: from localhost ([127.0.0.1]:56195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqgps-00029S-SG for submit@debbugs.gnu.org; Tue, 17 Sep 2024 18:38:17 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:45413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqgpq-00028x-IC for 72949@debbugs.gnu.org; Tue, 17 Sep 2024 18:38:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1726612671; x=1727217471; i=jimjoe@gmx.net; bh=FqgqQ0rl/FFZn+g16EF8p6gUI+DxnRKI8cEKPpLgNa8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Rcz8HIXxmdne+YUNvNVHzsh+Bg7mX2luIGVF70fY07h7KVOxNdeXKH66n5/ZjmY7 GcbO2I+RchGzNI4A1kiL7MNAluibf/beWAeaUI5guz7+ny6Gkk5gUzw7ARTWM/DnN r1+llojfl18xz4GmpLT/lKq22OojshmbPwC2yseWoeci2kCtdl1ofJ3xgR3e7pfoC coBihjLo3++kmJcDgiFamunLLg4osNc/b3t3SA7089xRAsLCw0bUkzlsIqUQ0aQTX 7M2uOAHvA6H5n6zXnVlyLONsGTxDfsQo9Ayg3KrqzhCXIIG0rIukg5egYR7Tjmrwx TpGYRKBGusxsYKLO/A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-3493 ([117.242.199.137]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1Ml6qM-1s7lgY3fXY-00aoiF; Wed, 18 Sep 2024 00:37:51 +0200 In-Reply-To: <86zfo69b52.fsf@gmx.net> (James Thomas's message of "Tue, 17 Sep 2024 09:36:49 +0530") X-Provags-ID: V03:K1:Z1X2YN5FPaitqwcqVAtsrYE/TwRG/DlPQ8AIg4WYHP5E1hFwKZB 0yOyHykovur9OOKwN6ecSDuMG52rNHT2yQHaKML4bnYht4SKLXBH+dvV1bIilktUUq4n7Jo FbaMQO1zuIbWdEPOp7PMVZP8nJoY6P1jOqaJWADtEw+pLs3Q1ygKmqEpkHdubQpPMnjyEyl w1LdfieoIQi5gB32w0szg== UI-OutboundReport: notjunk:1;M01:P0:ZekBgtLHfHI=;Zy1q97L+tp9Ze76DFU+qn8VZKNR FfTD26EpdyBW3xo+rSuHneGhTH1GHlEramqrtKQwFufiAjTtHnB6mGG/TncicXBXuz11bp37D Sjai2P0mmKVIHZW3K2DEpyyJG+kkgpb0knDlEeVI3FuZRzYokJciC679Z9HKoNDRYfoETB8A3 yA+Qof+m9BBpnMVDu+RuXvIO2PfTixHSCdhTP0atOUKDLaZsxNWpW1Ewm9CcEN2Wr8e2RBhln apzZhpYIRPryWp8kejRHcRAXIq9dECu1O0G+2p8jyaOH9rxIWZmIifaMApreGvjE8xxlmFuEv bLQZNOTQ+6p5iwLJQrwzhzjhwFQsGy2UsWJP3ektAbp/UwflSdqqJi5+IJ41pbBDJ2kTZBTeD aZfvYftO8cuFzP65NUX6XVjdoC6IBYGaRGHPTCWj7Tmu2TjdYGDT8k6EpKcdIfsyrZ3jDNNDz sOXc2osyt0ND5SLVQeJ6rCZktRKzjpT8qgdnEGhdra2CMovEXn628Qj5m/TedRc1L8ZnSxkrd Hf7SwubcBNLX5tbYnpHiX7KDKKZb/pkeZ9YJVa2f8tZo/SbcWUXNSz9B8RZg3xm2cn/LKxE52 1WfC3Ggc5Bx5Vq2IPQK5mtkgf7iKSLISPhECL0MXA+fqnTJQsZJOgJBTfbOLcdP8tQaYIgbtF Wy9A7VfA0Z9bmeibbmCt1kanGTvIGDBuHejx7OaY6v3e27YNTuSfQdGn9tcEsi9dMR/fFNFWq MDsyGZvKZ4fHAp6CgcXyI6q6vd1RjJVrRsFq9C85OYHDXBxl8q/VQPdTTf28r1RzB175IemQ 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:291980 Archived-At: James Thomas wrote: > Thank you for the patient explanation! (I blame the confusion on the on > and off attention I gave to this). Your patch LGTM. In fact, is the max needed? Wouldn't this work as well? diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 7b0e42ff89d..251c69706c2 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -918,10 +918,10 @@ 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)) + (1+ (- (cdr active) (car active))) (car active) (cdr active) group)) --