From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 568FA23510 for ; Wed, 17 Apr 2024 08:48:12 +0200 (CEST) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rwz5X-0000000FSe7-2EYk for ml@inbox.vuxu.org; Wed, 17 Apr 2024 01:48:11 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1rwz5X-00000003RZk-1GlF for ml@inbox.vuxu.org; Wed, 17 Apr 2024 01:48:11 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1rwz5V-00000003RZe-2wzt for ding@lists.math.uh.edu; Wed, 17 Apr 2024 01:48:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rwz5R-0000000FSdG-3rIG for ding@lists.math.uh.edu; Wed, 17 Apr 2024 01:48:09 -0500 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=LPMgH/j2CMRoQd780+bTtpWpItJCJnC9dEHjO/yb7/o=; b=XRr+UO7aKXxPBOGe5q2OKy+hKt kKDeaLRQXMPq4VHt2AmNGcF94Qvp4e88ee78ip5JOSMbpMGA4JEn1LBZTYAqTlyv/ihRoo8L8mhxG FB7rM1pNmHghVQJG0iXNcObx0Mch4Ir29QJ4TVGwAQv+xRD1Vac5Jci5oHgOXeUfbxDI=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rwz5K-00078R-Rr for ding@gnus.org; Wed, 17 Apr 2024 08:48:01 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rwz5J-0009Q1-Le for ding@gnus.org; Wed, 17 Apr 2024 08:47:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Xiyue Deng Subject: Re: Gnus sometimes reports new messages but not showing them on IMAP server Date: Tue, 16 Apr 2024 23:47:52 -0700 Message-ID: <87pluov61z.fsf@debian-hx90.lan> References: <87h6g7mm8r.fsf@debian-hx90.lan> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:4FRfL3NdRaLpz8TIrdFD6d30bV0= List-ID: Precedence: bulk Greg Troxel writes: > Xiyue Deng writes: > >> I'm having some issues that Gnus sometimes reports that there are new >> messages on an IMAP server but it doesn't show them. In my case it's >> using Gmail IMAP, and if I check using other mail clients >> (e.g. Thunderbird) or directly check on Gmail website I can seem them. >> I'm not sure whether this issue is specific to IMAP either. As I'm not >> sure how to get more info, I didn't use report bug yet, but would like >> to ask around and see whether this is a known issue, or otherwise I can >> get some suggestions to get more debug info before I formally file a >> bug. > > I have been having a problem for several years that may be the same > thing. > > My mail is in IMAP via dovecot. Other than the following I have zero > problems with it. > > I read mail with gnus (emacs built w/o x11 running in tmux in an xterm, > on NetBSD, currently 28.2 and thus the included gnus), with about 300 > folders, about half of which have server-side filing of list mail. I > also use K-9 Mail on Android (INBOX and maybe 3 more mailboxes, more or > less, ignoring the folders for lists and storage). Occasionally I use > thunderbird for INBOX, to read something that should have been plain > text and isn't :-) but this issue has happened with no tbird running at > all. > > Often, I get a message on my phone that I just leave (marked read) to > deal with later. Sometimes, maybe 1 in 50, I can't find it in gnus, and > on looking harder find that it is just not showing up there. Yet K-9 > sees it as present and looking in ~/IMAP/cur shows it was well. > Whenever this has happened and I look with Thunderbird, it sees it fine > also. > Exactly this symptom. > I have found that if I move the message to another folder (I have TMP > for this very purpose) and then back to INBOX, it can then be found in > gnus. So something about the message as it sits in the folder was > triggering gnus to miss it, while the very same message refiled does not > trigger this. > I haven't tried this in this case, but there is actually another issue that I haven't talked about: sometimes one of the empty folders may report a number of new messages in it! In one of the occurrences it reports 52 new message on an empty folder. The solution, however, is similar to what you did but reverse: you move a number of messages from another folder to it, and the new message count will reduce by the number of messages you moved! So in the previous case if you move 10 messages to the folder, the count becomes 42. You move them out, and move them back again, 32, etc. Let me also try your solution in future. > I have not been able to determine any pattern of which messages get this > disappearing treatment. It's not really the message, since moving and > back fixes it. > > Early on, I sort of suspected dovecot, but other people don't have > trouble with dovecot, and I have had zero flakiness other than this > specific issue. > > I have not perceived "gnus says there are new messages but there > aren't". I am not at all sure I would have noticed, especially if gnus > said 6 and there were 5. > I have only encountered such cases when the folder is empty. > In your case, if you do "100" in group, do you see the missing > message? If not, you should be able to turn on some kind of debugging > to figure out what's going on, but I am unclear on the details. > No, specifying a number didn't work for me, unfortunately. And I guess to really understand this issue one may have to read the code of Gnus or IMAP backend or hopefully someone that does may be able to help. > Greg > > -- Xiyue Deng