🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #6322

Re: Seeking trn clevernesses

#6322
From: Wayne Davison
Date: Sun, 31 Oct 1993 21:20
97 lines
3585 bytes
According to Tom Christiansen <tchrist@wraeththu.cs.colorado.edu>:
> I'm looking for particularly clever trn bits, like killfile
> magic for reconfigging how things display or whatnot, or 
> things for your trninit file.

I don't know how particularly clever these bits are, but here's some stuff
I use in my trninit file:

-EKILLLOCAL="%p/KILL/%C"
-EKILLGLOBAL="%p/KILL/Global"

These two lines cause all my kill files to be put into one subdirectory
(KILL) off the news dir.  Note, won't work on short-named file systems.

-EMAILPOSTER="/home/davison/bin/mush -h %h"

This takes me directly into mush for my mail handling.

-hunrecognized

This hides all unrecognized header lines.

In my .trnmac file I have the following lines:

f	%(%m=[ap]?f^m:f)

Pressing 'f' always starts a new topic in article mode.

u	%(%m=[aenp]?U:u)
U	%(%m=[aenp]?U+:U)
^U	%(%m=t?+u:u)

Pressing 'u' gives me the set-Unread prompt, 'U' always goes to the
set-unread selector and Ctrl-U unsubscribes the group.

o	%(%m=[nf]?O:o)
O	%(%m=[nf]?o:O)

Swap o and O in the newsgroup selection mode so that my exclusion modes
don't display empty groups by default (typing 'o' gives me the 'O' command).

@T	s ~/Mail/trn
@M	| /bin/mail davison
@@	@

Some macros and a way to type an '@' in the selector.

^[^[	^[

Pressing escape twice generates an escape (needed due to the automatic
keypad macros).

As for killfile suggestions, I put the lines:

&+u
X&-u

into the kill files for source groups so that the subjects always display
the "(Part 01/05)" info but in other groups trn chops the ends off of long
subjects (I use -u by default).

Also, you can put something like:

&-ENEWSSIGNATURE=~/.group_x_sig
X&-ENEWSSIGNATURE=~/.news_sig

Into a group that you want a special signature in (which assumes that the
file ~/.news_sig is your default signature file -- this is the pre-appended
version of ~/.signature -- see Pnews.1).

> What's a good ATTRIBUTION?

I now use:

-EATTRIBUTION="According to %)f <%>f>:"

(The ')' and '>' modifiers only work in later versions of trn, like 3.3).

> How do you get the speller to skip that line?

You modify the Speller script to weed out your attribtuion line and also
to handle people changing the attribution line to something like "%f said:"
without endangering a file that doesn't have any attributed text at all in
it and then mail the resulting script to me for inclusion in trn 3.4.  :-)

Seriously, a simple mod to Speller may be adequate for you to skip the
checking of this line, but a general case is trickier, and I haven't
taken the time to work one out yet (what with so many other things that
need to get done).

> How come -F: causes the Speller not to not check those lines?

Because it is bad manners to change the attributed text without marking it
as changed.  Sometimes it is even erroneous.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CFs5yF.4xI@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!Germany.EU.net!mcsun!uknet!pipex!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <CFG7M7.9E2@colorado.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CFs5yF.4xI@borland.com>
Subject: Re: Seeking trn clevernesses
Date: Sun, 31 Oct 1993 21:20:39 GMT
From: davison@borland.com (Wayne Davison)
References: <CFG7M7.9E2@colorado.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!Germany.EU.net!mcsun!uknet!pipex!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 97