[gnu.emacs.gnus] kill files

garry@retix.retix.COM (Garry Star) (10/19/89)

Can someone tell me the syntax of a gnus kill file?  All of my
attempts up to now haven't worked...

karl@cheops.cis.ohio-state.edu (Karl Kleinpaste) (10/19/89)

garry@retix.retix.com writes:
   Can someone tell me the syntax of a gnus kill file?  All of my
   attempts up to now haven't worked...

Try this, from my News/control/KILL:

(gnus-kill "Subject" "cancel")
(gnus-expunge "X")

When editing a kill file via M-K in the *Subject* buffer, try
	C-c C-k C-a
and	C-c C-k C-s
It does most of the work for you.

--Karl

PS- Yes, some of us actually do _read_ control.

tale@pawl.rpi.edu (David C Lawrence) (10/19/89)

In <KARL.89Oct18173911@cheops.cis.ohio-state.edu> karl@cis.ohio-state.edu
(Karl Kleinpaste):
Karl> PS- Yes, some of us actually do _read_ control.

Ayup.  Note that if you want to kill based on a header which is not
prefrobnictaed by GNUS, or based on the text of the article, a
slightly different format is necessary.  The field value, the first
argument to gnus-kill, must be an empty string.

~tale/News/control.KILL:
================
(gnus-kill "" "^Control:\\s +cancel\\s +<[^>]+>$")
;(gnus-expunge "X")
================

Note also for my control kill file that I kill based on the Control
header line.  This is preferable to me for a couple of reasons, among
them all the clarinews cancels that appear with a Subject: of "x" for
articles appearing in biz.clarinet.sample.  The way I was doing it
(Karl's method -- (gnus-kill "Subject" "cancel")) simply wouldn't get
them.  Note that my method is a little slower, but for the mostly
empty messages in control it isn't that bad.  GNUS has to do more work
though because it is retrieving each article and doing the searching
as it gets them.

Dave
-- 
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))