From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68636 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: How to straighten up group unread numbers Date: Sun, 05 Jul 2009 00:20:14 +0200 Organization: Probably a good idea Message-ID: References: <87ljn4dxra.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1246746086 14162 80.91.229.12 (4 Jul 2009 22:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jul 2009 22:21:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17063@lists.math.uh.edu Sun Jul 05 00:21:19 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MNDbf-0002Fw-9k for ding-account@gmane.org; Sun, 05 Jul 2009 00:21:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MNDbC-000177-GO; Sat, 04 Jul 2009 17:20:46 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MNDbA-00016r-RS for ding@lists.math.uh.edu; Sat, 04 Jul 2009 17:20:44 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MNDb9-0001yV-Dt for ding@lists.math.uh.edu; Sat, 04 Jul 2009 17:20:44 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MNDbf-0008Mj-00 for ; Sun, 05 Jul 2009 00:21:15 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MNDb4-0005oK-Rf for ding@gnus.org; Sat, 04 Jul 2009 22:20:38 +0000 Original-Received: from cm-84.208.204.180.getinternet.no ([84.208.204.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jul 2009 22:20:38 +0000 Original-Received: from sb by cm-84.208.204.180.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jul 2009 22:20:38 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.204.180.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:H2feyzEDwcrxuMIaJwNeGvi/l8Y= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68636 Archived-At: One approach I've thought about: - have a loop that goes through all interesting groups (in my case all nnimap, and gmane nntp groups), and for each group - Open the group, and loop through and read all unread articles - Loop through the recently visited articles, and all articles not marked as expired will be marked as unread - exit the group This should: - Correct the read count (for nnimap this would be articles read by a different gnus, which is handled just by visiting the group, and articles that are permanently deleted, which appear as expired after an attempted read. For gmane nntp groups, just visiting the group will remove the articles crossposted to gmane.spam.detected (because I score them down), and reading each article will remove those articles reported as spam) - Cache all articles in agent (if that actually works for me now) Note that just visiting each group will handle everything except the expired articles (permanently deleted IMAP articles, and reported spam in gmane), and would be a lot simpler. Perhaps that could be a first iteration? The visiting of the interesting group logic, would be the same.