From unknown Fri Aug 15 12:53:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20004: 25.0.50; nnimap should update unread counts from server Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Mar 2015 02:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20004 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 20004@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142552151821355 (code B ref -1); Thu, 05 Mar 2015 02:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2015 02:11:58 +0000 Received: from localhost ([127.0.0.1]:35383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTLGX-0005YN-Ga for submit@debbugs.gnu.org; Wed, 04 Mar 2015 21:11:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54713) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTLGV-0005YB-IL for submit@debbugs.gnu.org; Wed, 04 Mar 2015 21:11:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTLGO-0005JX-4p for submit@debbugs.gnu.org; Wed, 04 Mar 2015 21:11:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTLGO-0005JF-1Q for submit@debbugs.gnu.org; Wed, 04 Mar 2015 21:11:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTLGN-0006BC-3L for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 21:11:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTLGJ-0005II-Tb for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 21:11:47 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:40044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTLGJ-0005I5-Ns for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 21:11:43 -0500 Received: by wivr20 with SMTP id r20so3435033wiv.5 for ; Wed, 04 Mar 2015 18:11:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version:content-type; bh=5btxTW7gmiJxGSx9CG07AUtTaoM43Tz9NWTXxb3mhoI=; b=abJAXHQnfVV7DTIjz+gX4Ju0A4T3VBl388FD3xBweL7e4dd0/Z0yg/I8XBxsK4MjCX MlrUHMxZtpgknMRTsIPkrEjPAPY6AgksTLaikOGaBKXlFtzmGA3qkb6TEqz/j9jwy+PG malkyhVQtajuMbmI215MtM3fgehi1zZRzkfNTYw+eNxo+zlXeQcaTG1koaC7PLvAqXRh 4liJ91HuOa34bp/Urnr8DjnzD+q8cRQQ8pFXHWyz72rqc8Z5mmszqHQKitcMoMMULeT5 qSPh38U57Y8JuueooYirzOrgYdhaskrJUZ0s80EGv7mZ1ebOP5TvFAjl2ArZiXS+i0VB dniA== X-Gm-Message-State: ALoCoQlZQTYDqj18GO5LANRS7GhVFcxcnQiXhnr64d0jw7j2iYQdRMFNOt9Di/LG40fDIccEk5Yx X-Received: by 10.194.83.66 with SMTP id o2mr13700258wjy.55.1425521502921; Wed, 04 Mar 2015 18:11:42 -0800 (PST) Received: from localhost ([123.122.35.212]) by mx.google.com with ESMTPSA id i10sm6755492wja.40.2015.03.04.18.11.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 18:11:42 -0800 (PST) From: Eric Abrahamsen User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.7 (x86_64-unknown-linux-gnu) Date: Thu, 05 Mar 2015 10:11:37 +0800 Message-ID: <87d24ofb1i.fsf@ericabrahamsen.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) At some point in the Gnus usage cycle, nnimap servers should be updating their read marks (and possibly other marks) from the IMAP server flags. Right now, Gnus relies on its own read/unread marks, and will not query the server for group flags unless you manually delete the "active" parameter for a group, and force it to re-scan the group. This means that, if you have two or more Gnus installations accessing the same server, they will get out of whack with each other, each effectively assuming that its marks are canonically correct. It also means that, if you have misconfigurations elsewhere (ahem), and funny things are happening with your server flags, Gnus won't be aware of that, leading to drift between Gnus and the server. I'm not sure of the correct solution. Some possibilities: 1. Refresh flags on startup only (ie call `gnus-get-unread-articles-in-group' with the "update" flag set to t). This would be light on resources, but could still lead to confusion if you've actually got multiple Gnusii open and operating at the same time. 2. Constant refresh: flags are refreshed every time Gnus is refreshed. This seems overly resource intensive, though probably there could be a guard that first compares unread counts, and only does the full refresh if they differ. 3. Don't store unread marks for IMAP groups at all; only rely on the server flags (!) I'm happy to contribute to a solution, depending on what the right approach might be. From unknown Fri Aug 15 12:53:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20004: 25.0.50; nnimap should update unread counts from server Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 25 Jan 2017 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20004 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Eric Abrahamsen Cc: 20004@debbugs.gnu.org Received: via spool by 20004-submit@debbugs.gnu.org id=B20004.148538031618495 (code B ref 20004); Wed, 25 Jan 2017 21:39:02 +0000 Received: (at 20004) by debbugs.gnu.org; 25 Jan 2017 21:38:36 +0000 Received: from localhost ([127.0.0.1]:43749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVH2-0004oF-9T for submit@debbugs.gnu.org; Wed, 25 Jan 2017 16:38:36 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVH0-0004o6-Qy for 20004@debbugs.gnu.org; Wed, 25 Jan 2017 16:38:35 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWVGy-0005nr-4B; Wed, 25 Jan 2017 22:38:34 +0100 From: Lars Ingebrigtsen In-Reply-To: <87d24ofb1i.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 05 Mar 2015 10:11:37 +0800") Date: Wed, 25 Jan 2017 22:33:13 +0100 Message-ID: <87y3xyakpy.fsf@gnus.org> References: <87d24ofb1i.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eric Abrahamsen writes: > At some point in the Gnus usage cycle, nnimap servers should be updating > their read marks (and possibly other marks) from the IMAP server flags. > Right now, Gnus relies on its own read/unread marks, and will not query > the server for group flags unless you manually delete the "active" > parameter for a group, and force it to re-scan the group. If you're talking to a modern IMAP server, then Gnus will issue QRESYNC commands to the server and will get all new events that have happened. This includes read/unread marks and all the rest. If the server doesn't support that, there's not much that Gnus can do without agressively re-requesting all the data on the server, and that's going to be s-l-o-w. So I don't think this is a bug. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 16:38:43 2017 Received: (at control) by debbugs.gnu.org; 25 Jan 2017 21:38:43 +0000 Received: from localhost ([127.0.0.1]:43752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVH9-0004oa-G8 for submit@debbugs.gnu.org; Wed, 25 Jan 2017 16:38:43 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVH8-0004oT-8x for control@debbugs.gnu.org; Wed, 25 Jan 2017 16:38:42 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWVH6-0006L9-2c for control@debbugs.gnu.org; Wed, 25 Jan 2017 22:38:41 +0100 From: Lars Ingebrigtsen To: control@debbugs.gnu.org Subject: control message for bug #20004 Message-ID: <87wpdiakpx.fsf@totally-fudged-out-message-id> Date: Wed, 25 Jan 2017 22:38:34 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 20004 From unknown Fri Aug 15 12:53:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20004: 25.0.50; nnimap should update unread counts from server Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Jan 2017 07:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20004 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 20004@debbugs.gnu.org Received: via spool by 20004-submit@debbugs.gnu.org id=B20004.148541429611988 (code B ref 20004); Thu, 26 Jan 2017 07:05:01 +0000 Received: (at 20004) by debbugs.gnu.org; 26 Jan 2017 07:04:56 +0000 Received: from localhost ([127.0.0.1]:44116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWe76-00037I-7n for submit@debbugs.gnu.org; Thu, 26 Jan 2017 02:04:56 -0500 Received: from mail.ericabrahamsen.net ([50.56.99.223]:43275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWe74-00037A-CA for 20004@debbugs.gnu.org; Thu, 26 Jan 2017 02:04:54 -0500 Received: from localhost (ool-944b3b7d.dyn.optonline.net [148.75.59.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 10383BE65E; Thu, 26 Jan 2017 07:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1485414294; bh=zkDpK+Tz+QO9gzEN53Ih1OmbSnbtUZZHdchtvYi+H7M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rRi5W4TGZlv0/xOmsaPpeqftwhk8cJF83IT1pPiD8dueAHyJCznbp0b0jxSCb2utq A8EU5IthJpp6hHmxOgr/+hCoMvjYRE9vbV7oG99uWsV/XzzRDps1oZ8W2fF7ikbylZ dPQF2uyp+ssG+HhzxMDhclBZhJ5EHVJaf6h3BjYU= From: Eric Abrahamsen References: <87d24ofb1i.fsf@ericabrahamsen.net> <87y3xyakpy.fsf@gnus.org> Date: Thu, 26 Jan 2017 02:04:53 -0500 In-Reply-To: <87y3xyakpy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Jan 2017 22:33:13 +0100") Message-ID: <87vat247ze.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) On 01/25/17 22:33 PM, Lars Ingebrigtsen wrote: > Eric Abrahamsen writes: > >> At some point in the Gnus usage cycle, nnimap servers should be updating >> their read marks (and possibly other marks) from the IMAP server flags. >> Right now, Gnus relies on its own read/unread marks, and will not query >> the server for group flags unless you manually delete the "active" >> parameter for a group, and force it to re-scan the group. > > If you're talking to a modern IMAP server, then Gnus will issue QRESYNC > commands to the server and will get all new events that have happened. > This includes read/unread marks and all the rest. > > If the server doesn't support that, there's not much that Gnus can do > without agressively re-requesting all the data on the server, and that's > going to be s-l-o-w. So I don't think this is a bug. This was almost certainly an early confusion on my part about how nnimap works, thanks for closing.