🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32135

Re: A way to NOT apply global KILL file? [trn]

#32135
From: Kim DeVaughn
Date: Fri, 14 Mar 1997 00:00
51 lines
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

Technical Details
Message-ID: <5gamoq$ihd@nntp1.ba.best.com>
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
References: <5g7bo5$t7j@nntp1.ba.best.com> <5g82fo$7u1@sloth.swcp.com>

Show Full Headers
Complete Article Headers
Message-ID: <5gamoq$ihd@nntp1.ba.best.com>
Subject: Re: A way to NOT apply global KILL file? [trn]
Date: Fri, 14 Mar 1997 00:00:00 +0000
From: kimdv@best.com (Kim DeVaughn)
References: <5g7bo5$t7j@nntp1.ba.best.com> <5g82fo$7u1@sloth.swcp.com>
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: 225373040
Summary: I just *knew* this would happen ...
Organization: Kim's Home for Wayward Cocktail Waitresses & Hors d'oeuvre Girls
Newsgroups: news.software.readers
X-Newsposter: trn 4.0-test56+ked.01 (3 Mar 97)