[gnu.emacs.gnus] ! Kill

mrd@sun.soe.clarkson.edu (Michael DeCorte) (10/30/89)

Gnus has gnus-kill but does it have a gnus-keep?  In other words if
the article has a line in it that matches my Reg Expr then don't
delete, otherwise delete it. Sort of like grep -vil.

Oh by the way, version is:

;; $Header: gnus.el,v 3.12 89/06/19 13:36:31 umerin Exp $

thanks
--

Michael DeCorte // H215-546-0497 W386-8164 Fax386-8252 // mrd@clutx.bitnet
2300 Naudain St. "H", Phil, PA 19146 // mrd@sun.soe.clarkson.edu
---------------------------------------------------------------------------
Clarkson Archive Server // commands = help, index, send, path
archive-server@sun.soe.clarkson.edu
archive-server%sun.soe.clarkson.edu@omnigate.bitnet
dumb1!dumb2!dumb3!smart!sun.soe.clarkson.edu!archive-server
---------------------------------------------------------------------------

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

In <MRD.89Oct29171956@image.clarkson.edu> mrd@sun.soe.clarkson.edu
(Michael DeCorte) writes:
Michael> Gnus has gnus-kill but does it have a gnus-keep?  In other words if
Michael> the article has a line in it that matches my Reg Expr then don't
Michael> delete, otherwise delete it. Sort of like grep -vil.

You basically need to use the same sort of trick you would use with rn
kill files:

(gnus-kill "Subject" "^")
(gnus-kill "Subject" "whatever you want to keep" "\M-u")

This should mark all subjects as read and then return an clear the
mark for all articles which you want to keep.
-- 
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))