From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86382 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.emacs.gnus.general Subject: Question regarding =?utf-8?b?YGdudXMtYWdlbnQtc2F2ZS1ncm91cC1pbmZvJw==?= Date: Tue, 8 Dec 2015 13:16:30 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1449592547 13819 80.91.229.3 (8 Dec 2015 16:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 16:35:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34614@lists.math.uh.edu Tue Dec 08 17:35:35 2015 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 1a6LEk-0007bm-U6 for ding-account@gmane.org; Tue, 08 Dec 2015 17:35:35 +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 1a6LDP-00050x-Qf; Tue, 08 Dec 2015 10:34:11 -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 1a6IV5-0004Cm-JA for ding@lists.math.uh.edu; Tue, 08 Dec 2015 07:40:15 -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 1a6IV3-0004Dg-Jf for ding@lists.math.uh.edu; Tue, 08 Dec 2015 07:40:15 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1a6IV0-0000qN-VF for ding@gnus.org; Tue, 08 Dec 2015 14:40:11 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6IUv-0002tq-HE for ding@gnus.org; Tue, 08 Dec 2015 14:40:05 +0100 Original-Received: from ukc1-proxy-mwg05-o.oracle.com ([144.24.20.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 14:40:05 +0100 Original-Received: from jens.schmidt001 by ukc1-proxy-mwg05-o.oracle.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 14:40:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 144.24.20.230 (Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0) X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86382 Archived-At: Hi, 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? Jens