Gnus development mailing list
 help / color / mirror / Atom feed
From: craffert@ml.com (Colin Rafferty)
Subject: gnus-get-new-news-post-hook
Date: 28 Feb 1996 16:07:19 -0500	[thread overview]
Message-ID: <ocrhgwb17nc.fsf@spssunp.ml.com> (raw)

Howdy-

One trivial feature request that I have is to add a hook by that name.
I am a little surprised that no one has requested it yet, since it seems
that there are many things that one would want to do after getting new
news.

For example, I have a group "nnml:mail.garbage" that is where I send all
my trash when splitting.  I have it set to total-expire and expire in -1
days (immediately).  However, I still have to manually catch up the
group, and at some point, expire it (gnus-group-expire-all-groups).

Instead, I would like to have the following in my .gnus:

  (add-hook 'gnus-get-new-news-post-hook 'cor:gnus-empty-garbage)

  (defun cor:gnus-empty-garbage ()
    "Empty my garbage can."
    (interactive)
    (let ((gnus-interactive-catchup nil)
          (gnus-group-marked '("nnml:mail.garbage")))
      (gnus-group-catchup-current)
      (gnus-group-expire-articles nil)))

Is there any possibility of adding this hook variable, or is there some
other that I should be using?

Thanks a lot.

-- 
Colin Rafferty
Violate the Communications Decency Act.
"...shit, piss, fuck, cunt, cocksucker, mother-fucker, and tits."
                  -FCC v. Pacifica Foundation 438 U.S. 726 (1978)


             reply	other threads:[~1996-02-28 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-28 21:07 Colin Rafferty [this message]
1996-02-29  8:58 ` gnus-get-new-news-post-hook Lars Magne Ingebrigtsen

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=ocrhgwb17nc.fsf@spssunp.ml.com \
    --to=craffert@ml.com \
    /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).