Article View: news.software.nn
Article #9988Re: help me killfile
From: Glenn McDavid
Date: Sat, 23 Mar 2002 00:46
Date: Sat, 23 Mar 2002 00:46
47 lines
2030 bytes
2030 bytes
On Sat, 23 Mar 2002, The Avocado Avenger wrote:
> I'm having a tough time killfiling someone on a newsgroup with the name
> "R." How would I killfile him without killfiling everyone who has an r in
> their name?
This looks like a task for regular expressions. I will defer to the
experts, but you might try something like
:!n/=:\<R\.\> *$
to killfile him in all groups permanently. Prefix it by the group name
if you want to let him through in other groups.
You may need to tweak the syntax somewhat--I don't have a similar case
to test it on.
General idea:
!n -- kill on name
/ -- match on regular expression
= -- case sensitive
<\ -- word boundary (beginning)
R\. -- R., with the \ as an escape character so the . is not taken as a
wild card.
\> -- word boundary (end)
*$ -- nothing more in the name excepts spaces.
So this should catch
R.
but let
R
R. Jones
through.
Hope this helps. Regular expressions are really for killfiles.
Glenn McDavid
gmcdavid@attbi.com
gmcdavid@winternet.com
http://www.winternet.com/~gmcdavid/
Technical Details
Message-ID:
<Pine.LNX.4.44.0203221828580.468-100000@Drusilla.McDavid-home.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.mw.ipsvc.net!news.mw.ipsvc.net!typhoon.mn.ipsvc.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.4.44.0203221828580.468-100000@Drusilla.McDavid-home.org> Subject: Re: help me killfile Date: Sat, 23 Mar 2002 00:46:01 GMT From: Glenn McDavid <gmcdavid@attbi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.mw.ipsvc.net!news.mw.ipsvc.net!typhoon.mn.ipsvc.net.POSTED!not-for-mail Newsgroups: news.software.nn X-X-Sender: gmcdavid@Drusilla.McDavid-home.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Lines: 46 NNTP-Posting-Host: 24.118.171.103 X-Complaints-To: abuse@attbi.net X-Trace: typhoon.mn.ipsvc.net 1016844361 24.118.171.103 (Fri, 22 Mar 2002 18:46:01 CST) NNTP-Posting-Date: Fri, 22 Mar 2002 18:46:01 CST