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=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 115C4257AD for ; Thu, 2 May 2024 07:47:36 +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 1s2PI6-0000000Dpe4-2yKQ for ml@inbox.vuxu.org; Thu, 02 May 2024 00:47:34 -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 1s2PI6-000000044ox-1v0Y for ml@inbox.vuxu.org; Thu, 02 May 2024 00:47:34 -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 1s2PI3-000000044oo-281r for ding@lists.math.uh.edu; Thu, 02 May 2024 00:47:31 -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 1s2PI1-0000000DpdP-2chZ for ding@lists.math.uh.edu; Thu, 02 May 2024 00:47:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZVmkFxbGBWpZAfEwK7d+9fuNXdLAuqiTnzPRZipK/FU=; b=k4fjMDkDIQ2HMrZ6M645pZbZWz V6vfUQ8RVwVFQOJXLzIhhGuLIf2YGPnXAzC75jYbHMRq7r2WO4nj8c2RCOdFTfQ6KE+/LjnRr9Jel n3q1b//DnQw8sGXg7q5FVLaN3uo1b8qF17SSNXWgzDOyde7GIg9avg1DvEvucIqg88lk=; Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1s2PHu-0003pL-Nh for ding@gnus.org; Thu, 02 May 2024 07:47:24 +0200 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6f28bb6d747so6381739b3a.3 for ; Wed, 01 May 2024 22:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714628835; x=1715233635; darn=gnus.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZVmkFxbGBWpZAfEwK7d+9fuNXdLAuqiTnzPRZipK/FU=; b=ZW16BNBV43rjJXy4LRiGntDRuTWBfMgz3asPkJkBOhgHy5y+ynG6QDxYH+cIawWGyv UAr9cZ0u0vGbOagRc4tJgT9g/Gtd919JOOE5TrImUyr74slxtTg8iCYwYQfzQinjF4Lz Oe4XMSqGHJLk8539ocVxRt66CA6vmYwRwa8N3I6Zp2tccOlBMKgw4lZWDt3+k4WQsMj4 q77eG0+dyI2EBf8Hr1bu5SNvU2GxrkdOBTr5x84fP5RD0xyk+bMRrZm1cAYja+/Yl9yn JdJlGn/ip6ulKoFAK6Jq7tG7tAieXP9XZ32QxCLsF5FTv/WR38B220UXUWxFa0bD1cNO TUoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714628835; x=1715233635; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZVmkFxbGBWpZAfEwK7d+9fuNXdLAuqiTnzPRZipK/FU=; b=j3EO7zxFgQbX+HLaw11XpO6WWYgKRE4Fco4qBnPQLNxL2EEQpp4PtbrL/2VgcRVJEA s3/0AX7S7D2747C9YFEIWPTYZMMy+h/rg5xuzxVLhC35MUMCDTwk2iIUvJdElieglX2a 3Ea3/tUB6wu/ruZ23tqYu+L2DytwJ7AmBp3+8bYoFBHZxP7Ww/GHYw69wBjKGxaUSgsW PllInIO7sBvnq7LbZB6fGWrXARgYI1+6gpNVz/DuN1pSvpfDYPAg+F4puZw5qn1LkweW vOdyB9/FfKeGKIQtsuHpiRlu7fGfqmGC0M8E6AOPmIgeBi3yX/qj19Wd5X7eROUxeQc1 UVcw== X-Gm-Message-State: AOJu0YwReVyO6EYEmLwuLMjZ/fJdqY1YwugY/UWAG3o2XazTRpH4IV5L tJh2p5npXR9FNblGLF3aPd4+GReFWmICgRvKyzJrBupl1ytLiuXj0wD5xg== X-Google-Smtp-Source: AGHT+IER0trgjYTOI1kiiJfhlLQ7jKJ+uHbj1C6WZSt8estI6T4oYYU1XJfUQ2No0hG5XJYR/x8XHQ== X-Received: by 2002:a05:6a00:1305:b0:6f3:e71f:2d6e with SMTP id j5-20020a056a00130500b006f3e71f2d6emr1245625pfu.9.1714628834675; Wed, 01 May 2024 22:47:14 -0700 (PDT) Received: from debian-hx90 ([2603:8000:a400:cdc:2cc5:fe41:5883:6c1a]) by smtp.gmail.com with ESMTPSA id x16-20020a056a000bd000b006ecf3ff65absm363591pfu.104.2024.05.01.22.47.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 22:47:13 -0700 (PDT) From: Xiyue Deng To: ding@gnus.org Subject: Re: Gnus sometimes reports new messages but not showing them on IMAP server In-Reply-To: <874jbmk2ql.fsf@debian-hx90.lan> (Xiyue Deng's message of "Sat, 27 Apr 2024 12:46:42 -0700") References: <87h6g7mm8r.fsf@debian-hx90.lan> <878r1blqcg.fsf@uwo.ca> <87ttjx55ey.fsf@uwo.ca> <875xwalmf4.fsf@ericabrahamsen.net> <87wmoqjf92.fsf@ericabrahamsen.net> <874jbmk2ql.fsf@debian-hx90.lan> Date: Wed, 01 May 2024 22:47:12 -0700 Message-ID: <87wmocrcin.fsf@debian-hx90.lan> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Xiyue Deng writes: > Eric Abrahamsen writes: > >> Greg Troxel writes: >> >>> Arash Esbati writes: >>> >>>>> I've focused on figuring out why the active number goes wrong, but in >>>>> the interest of pragmatism it might be better just to make sure that >>>>> nnimap always does the equivalent of "M-g" at Gnus startup. >>>> >>>> That might be a good compromise. >>> >>> Agreed. It seems obvious (said knowing that's dangerous) that on >>> starting up the program, it's best not to rely on state that could be >>> wrong. That's tricky, because mail programs keep messages and don't >>> refetch them, but relying on counts of unread seems very trouble prone, >>> vs "I have this message body and the timestamp matches so I won't fetch >>> it." >>> >>> I think it would also be good to separate >>> >>> check for new >>> >>> get all the messages that are there >>> >>> really rescan and don't believe state >>> >>> in terms of being much louder about the differences. I have the >>> impression that the assembled gnususers here are at least somewhat hazy >>> on those boundaries. At least I am. >> >> I think this is an artifact of Gnus starting out as a newsreader, and >> adding email capability later. In a NNTP context, the read/unread >> message count is entirely private to your local machine, and something >> you can manipulate at will. In an IMAP context, it's very much a part of >> multi-machine state. Gnus should always defer to the remote server, >> particularly at start up. I do wish I knew where the bug was coming >> from, though. >> >> >> > > This makes much sense. I'll try M-g the next time this happens. Thanks > everyone! > > Also I would expect the equivalent of M-g to happen on startup so that > there are less surprises. So the issue Greg described just happened again that an empty folder/topic "Trash" from one of my outlook accounts just shown 38 unread messages and selecting it fails with "Can't select group", while other clients like Thunderbird shows 0 in it. I have tried "M-g" and it doesn't help unfortunately :( Any more ideas for debugging? -- Xiyue Deng