Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: How to straighten up group unread numbers
Date: Sun, 05 Jul 2009 00:20:14 +0200	[thread overview]
Message-ID: <m31vow850h.fsf@dod.no> (raw)
In-Reply-To: <87ljn4dxra.fsf@newsguy.com>

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.




  reply	other threads:[~2009-07-04 22:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-04 20:00 Harry Putnam
2009-07-04 22:20 ` Steinar Bang [this message]
2009-07-10 11:10   ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m31vow850h.fsf@dod.no \
    --to=sb@dod.no \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).