Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: info-gnus-english@gnu.org
Subject: Is there some handy way to expire buy count of msgs
Date: Fri, 20 Sep 2013 12:14:33 -0400	[thread overview]
Message-ID: <877geb5v2u.fsf@newsguy.com> (raw)

I'd like to be able to total-expire a specific group when it gets to
50,000 messages.

The common way I've been using is by number of days like this:
(setq gnus-parameters
        '(("_ex$"
    (total-expire . t)
    (expiry-wait . 18))
          ("_tr$"
           (total-expire . t)
    (expiry-wait . 90)
          (gnus-visible-headers
           (concat gnus-visible-headers "\\|^X-Spam-Report:.*_FARAWAY_"))
          ("_$"
    (total-expire . t)
    (expiry-wait . 340)))))

My best guess to end up around 50,000 msgs was the last one there to
hold msgs for 340 days.

It was not a good guess, and I'd rather have some way to do it by
number of messages rather than amount of time held. But still, expire
the oldest ones first.

                 reply	other threads:[~2013-09-20 16:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=877geb5v2u.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=info-gnus-english@gnu.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).