🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #54919

trn 4.0: macro language and piping articles to sendmail / trn FAQ

#54919
From: rwj
Date: Mon, 06 Dec 1999 00:00
48 lines
2640 bytes
I just changed to a new Open BSD based shell account which at my request
installed trn as I had it on my last provider's account.  The last provider 
had an old version of trn and had configured it so the command s in article 
reading mode would mail the article to user rather than saving to a directory
such as the default News directory.  I want to replicate that behaviour with 
the new set up.

I've read the man page for trn and the trn FAQ and note some macro commands, 
one of which approaches the objective of piping to mail.  I tried in trn 
using 

&&s | /usr/sbin/sendmail rwj [address etc] 

but this is not retained by trn which forgets the macro when it restarts.  
Also this macro results in one being unable to select an article designated 
s in the articles list, instead prompting the pipe.

Questions:-

1.	is there a FAQ somewhere which *explains* the macro programming in 
trn (e.g. what the individual ingredients of the following (taken from the FAQ) 
mean):

D       %(%m=t?&+o^JD:D)
X       %(%m=t?&+o^JX:X)
*D      %(%m=t?&-o^JD:)
*X      %(%m=t?&-o^JX:)


I can't make out all the ^]% etc etc in the macros quoted in the 
trn FAQ and hints.trn doesn't seem to add anything to the FAQ.

2.	is the s macro not being retained because it conflicts with some 
other function of s in trn?  I have checked my TRNINIT, TRNRC and TRNMAC
files and the environment seems correctly set.  I also tried editing directly 
the .trnmac file but this doesn't have any effect any more than making the 
macro in && in trn itself.

3.	if s cannot be designated as a key to operate the desired macro,
how does one designate it in the macro so as make it acceptable?  (Question
related to #1 above)?  e.g. does one have to precede the s with some other
character(s) in the macro?





Technical Details
Message-ID: <82h6je$p4r$1@news8.svr.pol.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-mail

Show Full Headers
Complete Article Headers
Message-ID: <82h6je$p4r$1@news8.svr.pol.co.uk>
Subject: trn 4.0: macro language and piping articles to sendmail / trn FAQ
Date: Mon, 06 Dec 1999 00:00:00 +0000
From: rwjn0spam@tyunnos.freeserve.co.uk (rwj)
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: 557403171
Distribution: world
Content-Type: Text/Plain; charset=ISO-8859-1
X-Complaints-To: abuse@theplanet.net
X-Trace: news8.svr.pol.co.uk 944512430 25755 62.137.29.245 (6 Dec 1999 20:33:50 GMT)
Organization: Customer of Planet Online
Mime-Version: 1.0
NNTP-Posting-Date: 6 Dec 1999 20:33:50 GMT
Newsgroups: news.software.readers