Thread View: news.software.readers
3 messages
3 total messages
Started by Kim DeVaughn
Wed, 12 Mar 1997 00:00
A way to NOT apply global KILL file? [trn]
Author: Kim DeVaughn
Date: Wed, 12 Mar 1997 00:00
Date: Wed, 12 Mar 1997 00:00
24 lines
1580 bytes
1580 bytes
Can anyone think of a way using the *existing* killfile/regexp capabilities in trn to *prevent* the application of the global killfile's entries to specific newsgroups? Why? Because in a very few newsgroups (eg, news.admin.net-abuse.usenet, etc), my global regexp's kill-off various articles that I would like to read, without having to go rooting them out of the previously- read/killed list (U command). I'm using trn4, and have the source, so I could hack-in any of several ways that I can think of to implement such a feature, but I hate to add Yet Another Feature (or ask Wayne to), especially when this one would be of likely limited value to your average user. Just thought I'd ask if maybe I'm not overlooking some regexp trick or another ... /kim =========================================================================== "Old code never dies ... it just waits for the year 2000. Quietly." --Me
Re: A way to NOT apply global KILL file? [trn]
Author: Denis McKeon
Date: Wed, 12 Mar 1997 00:00
Date: Wed, 12 Mar 1997 00:00
33 lines
1968 bytes
1968 bytes
[followup both posted and mailed to poster]
In <5g7bo5$t7j@nntp1.ba.best.com> Kim DeVaughn wrote:
>Can anyone think of a way using the *existing* killfile/regexp
>capabilities in trn to *prevent* the application of the global
>killfile's entries to specific newsgroups?
Same sort of way one makes any temporary per-newsgroup environment
change (different .sig, different char-set, etc.) - in the local
killfile for the newsgroup(s), set the appropriate variable, and tell
trn to reset the same variable upon exit from the newsgroup, like:
&-EKILLGLOBAL=/dev/null
X&-EKILLGLOBAL=%~/News/Command/Global
I also use the X&-E trick in the global command file to reset things to
my preferences upon exiting each newsgroup, so any display changes I've
made for a particular group won't persist into the next group (of course
that wouldn't work here - sigh). The global command file is renamed
from %~/News/KILL because it's not just for killing articles anymore :-) )
Is anybody using the "include file" command file capability of trn4 ?
--
Denis McKeon
one of twelve proponents for a proposal to moderate news.newusers.questions,
under discussion in news:news.groups as news:856810132.838@isc.org
--
Denis McKeon
Re: A way to NOT apply global KILL file? [trn]
Author: Kim DeVaughn
Date: Fri, 14 Mar 1997 00:00
Date: Fri, 14 Mar 1997 00:00
51 lines
2627 bytes
2627 bytes
In article <5g82fo$7u1@sloth.swcp.com>, Denis McKeon <Dmckeon@swcp.com> wrote: | | In <5g7bo5$t7j@nntp1.ba.best.com> Kim DeVaughn wrote: | > | >Can anyone think of a way using the *existing* killfile/regexp | >capabilities in trn to *prevent* the application of the global | >killfile's entries to specific newsgroups? | | Same sort of way one makes any temporary per-newsgroup environment | change (different .sig, different char-set, etc.) - in the local | killfile for the newsgroup(s), set the appropriate variable, and tell | trn to reset the same variable upon exit from the newsgroup, like: | | &-EKILLGLOBAL=/dev/null | X&-EKILLGLOBAL=%~/News/Command/Global Of course! Now I remember about that capability ... never used it before though. Alas though, your suggestion seems to have uncovered a bug (at least in trn4-test56). Seems that currently, the global file is opened upon enering a group, but before the local file is processed. So (if you omit the exit cmd), KILLGLOBAL gets changed alright ... but the change only becomes effec- tive on the *next* newsgroup entered (or not at all with the X cmd in there). Sigh ... another obscure glitch to fix ... | I also use the X&-E trick in the global command file to reset things to | my preferences upon exiting each newsgroup, so any display changes I've | made for a particular group won't persist into the next group You mean like S(orting) and O(rdering) and the like? Good idea. | Is anybody using the "include file" command file capability of trn4 ? I dunno ... but the code's still in there. "I include/filename" should work, as it just recursively calls do_kfile(). Thanks ... (I think) ... :-) ...! /kim =========================================================================== "Old code never dies ... it just waits for the year 2000. Quietly." --Me
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