Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!crdgw1!rpi!tale From: tale@pawl.rpi.edu (David C Lawrence) Newsgroups: gnu.emacs.gnus Subject: Re: kill files Message-ID: <1989Oct19.070919.12607@rpi.edu> Date: 19 Oct 89 07:09:19 GMT References: <576@retix.retix.COM> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 28 In 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"))