🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #247947

Re: how to have x-no-archive added in headers with trn

#247947
From: Eli the Bearded
Date: Mon, 02 Jan 2012 19:25
60 lines
3589 bytes
In news.software.readers, bit rot <auto-generated@privacy.invalid> wrote:
> I appreciate the info above.. The more I fiddle with trn the better it 
> gets..sometimes. Big headaches at others.  Truly the Cadillac newsreader 
> even today. What I found out thru trial and error was adding "stuff" to my 
> trncrc file that is in the source .h and other '.' source files "trumps" 
> variables in those files. A little fiddling more and I got things to paste 
> themselves w/o a problem. Had no idea my question would generate the 
> followups it has but so it goes. 

Seems to me the precedence is supposed to:

  lowest: compiled in defaults
          system defaults (includes environment variables)
          personal trnrc settings
          command line settings
          settings made in current session

Anyway, by way of example, here are my customized mail and news
headers for ~/.trn/trnrc:


MAILHEADER='To: %t
Subject: %(%i=^$?:Re: %S
%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
)X-Newsgroups: %n
In-Reply-To: %i)
%(%[references]=^$?:References: %[references]
)Organization: %o
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
Cc:
Bcc: \n\n'

NEWSHEADER='Subject: %(%S=^$?%"\n\nSubject: ":Re: %S)
%(%[followup-to]=^$?:%(%[followup-to]=^%n$?:X-ORIGINAL-NEWSGROUPS: %n
))Newsgroups: %(%F=^$?%C:%F)
Summary:
%(%R=^$?:References: %R
)Sender:
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-No-Archive:
X-Comments: "(Welcome to the desert of the real.)" -- eck@panix
	    "... terrorism is open-source war ..." -- srini@unamerican
Followup-To:
%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
)Distribution: %(%i=^$?%"Distribution: ":%D)
Organization: %o
Keywords: %[keywords]
Cc: \n\n'

Note that I add a blank X-No-Archive: so that I can fill it in by hand
if I want. I rarely do. Unset headers get stripped by Rnmail / Pnews,
the shell scripts that trn uses to handle reply mail and follow-ups.
The variables in ~/.trn/trnrc only get set by trn, if you use Rnmail
or Pnews directly, they will not see the settings.

Elijah
------
uses Rnmail directly often
Technical Details
Message-ID: <eli$1201021425@qz.little-neck.ny.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!transit3.readnews.com!panix!qz!not-for-mail
References: <jdnk5q$gt7$4@dont-email.me> <Xns9FCC9979E141Cduckrulestheuniverse@nomail.afraid.org> <jdqis4$ttl$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <eli$1201021425@qz.little-neck.ny.us>
Subject: Re: how to have x-no-archive added in headers with trn
Date: Mon, 02 Jan 2012 19:25:23 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <jdnk5q$gt7$4@dont-email.me> <Xns9FCC9979E141Cduckrulestheuniverse@nomail.afraid.org> <jdqis4$ttl$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!transit3.readnews.com!panix!qz!not-for-mail
Newsgroups: news.software.readers
Organization: Some absurd concept
Lines: 60
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1325532323 26294 166.84.1.5 (2 Jan 2012 19:25:23
 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Mon, 2 Jan 2012 19:25:23 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-Comments: "(Welcome to the desert of the real.)" -- eck@panix
 "... terrorism is open-source war ..." -- srini@unamerican
X-Original-Bytes: 3283