Article View: news.software.readers
Article #24745Re: Any trn Killfile Gurus Out There
From: Olly Betts
Date: Wed, 07 Aug 1996 00:00
Date: Wed, 07 Aug 1996 00:00
36 lines
1955 bytes
1955 bytes
In article <4ua0fu$rro@srv13s4.cas.org>, Larry W. Virden wrote:
>According to Olly Betts <olly@mantis.co.uk>:
>:In article <Pine.SUN.3.94.960802094303.1271A-100000@access5.digex.net>, Paul O Bartlett wrote:
>:One minor caveat: as they stand, these rules will also match substrings of
>:newsgroup names, so they'll also fire for articles crossposted to
>:'soc.foo.misc' or 'alt.soc.foo' or even 'soc.foom'.
>
>For example
>
>/\bsoc\.foo\b/Hxref:x
>
>would be for a specific group (well, as long as your machine's name isn't
>soc.foo.
Since \b views words as composed of alphanumeric characters only, your
version would still fire for 'soc.foo.misc' and 'alt.soc.foo'. The code in
trn which checks for word boundaries is:
if ((lp == FirstCharacter || !isalnum(lp[-1])) !=
(!*lp || !isalnum(*lp)) )
A (hopefully) watertight version would be:
/ soc\.foo:/Hxref:x
which wouldn't even falsely match the machine name. If anything uses tabs
instead of spaces in Xref: headers, then /[ \t]soc\.foo:/Hxref:x might be
needed, but is likely to be less efficient.
Olly
--
cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Technical Details
Message-ID:
<4uaa1j$7jl@sunforest.mantis.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<Pine.SUN.3.94.960802094303.1271A-100000@access5.digex.net> <4u52cd$er1@sunforest.mantis.co.uk> <4ua0fu$rro@srv13s4.cas.org>Show Full Headers
Complete Article Headers
Message-ID: <4uaa1j$7jl@sunforest.mantis.co.uk> Subject: Re: Any trn Killfile Gurus Out There Date: Wed, 07 Aug 1996 00:00:00 +0000 From: olly@mantis.co.uk (Olly Betts) References: <Pine.SUN.3.94.960802094303.1271A-100000@access5.digex.net> <4u52cd$er1@sunforest.mantis.co.uk> <4ua0fu$rro@srv13s4.cas.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 172699669 Content-type: text/plain; charset=iso-8859-1 Organization: Mantis Consultants Ltd, Cambridge. UK. Mime-version: 1.0 Newsgroups: news.software.readers