🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Olly Betts Mon, 05 Aug 1996 00:00
Re: Any trn Killfile Gurus Out There
#24692
Author: Olly Betts
Date: Mon, 05 Aug 1996 00:00
35 lines
2004 bytes
In article <Pine.SUN.3.94.960802094303.1271A-100000@access5.digex.net>, Paul O Bartlett wrote:
>    Does anyone know if it is possible to set up trn killfiles in such
>a way that when one article is posted to both of two groups I read, it
>is killed in one group, so I don't have to go to the trouble of
>fumbling with it manually?

You want to use the 'x' command (mark as read in this group) rather than the
'j' command, which marks as read in all groups (as you've discovered).

So assuming you prefer to read posts in soc.foo rather than alt.foo, put
this in your alt.foo killfile:

/soc\.foo/Hnewsgroups:x

If your server has Xref: configured into the NOV database, this will be more
efficient (it also requires soc.foo to be carried by your server, but from
what you say, it is):

/soc\.foo/Hxref:x

These rules both mark any articles in alt.foo which are cross-posted to
soc.foo as read in alt.foo only, which seems to be what you want to do.

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'.  Just make the regular
expression more selective if this is a problem.

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Re: Any trn Killfile Gurus Out There
#24745
Author: Olly Betts
Date: Wed, 07 Aug 1996 00:00
36 lines
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


Re: Any trn Killfile Gurus Out There
#24751
Author: Larry W. Virden
Date: Wed, 07 Aug 1996 00:00
27 lines
1756 bytes

According to Olly Betts <olly@mantis.co.uk>:
:In article <Pine.SUN.3.94.960802094303.1271A-100000@access5.digex.net>, Paul O Bartlett wrote:
:/soc\.foo/Hxref:x
:
:These rules both mark any articles in alt.foo which are cross-posted to
:soc.foo as read in alt.foo only, which seems to be what you want to do.
:
: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'.  Just make the regular
:expression more selective if this is a problem.

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.
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads