🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by rwj Mon, 06 Dec 1999 00:00
trn 4.0: macro language and piping articles to sendmail / trn FAQ
#54919
Author: 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?





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