From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86726 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Question regarding `gnus-agent-save-group-info' Date: Sat, 06 Feb 2016 17:33:06 +1100 Message-ID: <87lh6ynyal.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454740447 25272 80.91.229.3 (6 Feb 2016 06:34:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 06:34:07 +0000 (UTC) Cc: ding@gnus.org To: Jens Original-X-From: ding-owner+M34952@lists.math.uh.edu Sat Feb 06 07:33:55 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRwRO-0000DG-Ti for ding-account@gmane.org; Sat, 06 Feb 2016 07:33:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aRwR9-00039P-5f; Sat, 06 Feb 2016 00:33:39 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aRwR7-00038v-9d for ding@lists.math.uh.edu; Sat, 06 Feb 2016 00:33:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aRwR6-00032E-5y for ding@lists.math.uh.edu; Sat, 06 Feb 2016 00:33:37 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aRwR4-00039N-QP for ding@gnus.org; Sat, 06 Feb 2016 07:33:34 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aRwQh-0007YU-TP; Sat, 06 Feb 2016 07:33:12 +0100 In-Reply-To: (Jens's message of "Tue, 8 Dec 2015 13:16:30 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aRwQh-0007YU-TP MailScanner-NULL-Check: 1455345193.25189@gCOYjln3hvUPTAaSusV3jw X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86726 Archived-At: Jens writes: > I have a minor inconvenience with agentized IMAP groups. If I delete > articles out of these while being plugged, the max value of the IMAP group > active information drops. However, the agent would not update its active > information to the new, lower value because of the following snippet from > `gnus-agent-save-group-info': > > (insert (format "%S %d %d y\n" (intern group) > (max (or oactive-max (cdr active)) (cdr active)) > (min (or oactive-min (car active)) (car active)))) > > As a result, when being unplugged, the group shows that it has unread > articles, which display as "undownloaded" articles in the group's summary > buffer. Even though these articles do not actually exist on the IMAP server. > > When I modify `gnus-agent-save-group-info' to always use the IMAP server > active information for the agent as well, everything works fine. > > Why do you need the max/min approach in `gnus-agent-save-group-info'? Why > not always set the agent active information to the active information of the > agentized group? I think the idea is that the Agent is a store of cached articles, and even if the articles have expired from the server, they should still be available in Gnus. For instance, if you're reading from a news server with short expiry, the min number will increase on the server, but it shouldn't increase in Gnus until you expire the messages from the Agent... For IMAP this may not be quite what we want, though. But what do we want? :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no