Article View: news.software.readers
Article #247962Re: how to have x-no-archive added in headers with trn
From: bit rot
Date: Tue, 03 Jan 2012 17:15
Date: Tue, 03 Jan 2012 17:15
101 lines
5451 bytes
5451 bytes
In article <eli$1201021425@qz.little-neck.ny.us>,
Eli the Bearded <*@eli.users.panix.com> wrote:
>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
Great. The precedence I never was sure about and it's always confusing
(for me) as there's so many ways to do one thing. I guess that's why unix
is generally confusing for me - too many ways to do one thing, headers a
good example.
Where does the X-newsreader line gets 'trn 4.0-test77 (Sep 1,2010)' from?
Must be in the config file, I can't find where.
>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'
Neat. I've got mine in my trnrc on one llong line only by trial/error,
I can edit the line adding or removing X- fields which is how I
get X-no-archive in there now. One very long line but it works as
long as I follow the default w/o errors.
NEWSHEADER= "%(%[followup-to]=^$?:%(%[followup-to]=^%n$?:X-ORIGINAL-NEWSGROUPS: %n\n))Newsgroups: %(%F=^$?%C:%F)\nSubject: %(%S=^$?%\"\n\nSubject: \":Re: %S)\nSummary: \nExpires: \n%(%R=^$?:References: %R\n)Sender: \nFollowup-To: \n%(%{FROM}=^$?:From: %{FROM}\n)%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Distribution: %(%i=^$?%\"Distribution: \":%D)\nOrganization: %o\nX-no-archive: yes\\nCc: %(%F=poster?%t:%(%F!=@?:%F))\n\n"
This should make a real mess to read here in my article being such a long
line, but you get my general idea I'm sure. Easier for me to cut and paste
it into my trnrc from a source file
>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
Uses Pine from habit but I've yet to get mail going on this iBook.
With a good deal of help I(we) compiled trn on this laptop, after
a number of changes to the config and make files iirc.
I must ask one final question. The "X-newsreader" line in the trn
header must well buried in
Anyway. thanks for this info Eli. Adding to my reference files.
--
Voices that define the USENET: In article <jbp0pp$p5a$1@speranza.aioe.org>
"Respondant" <none@none.invalid> wrote: So nanny-nanny-foo-foo
Technical Details
Message-ID:
<jdvd3s$955$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mailReferences:
<jdnk5q$gt7$4@dont-email.me> <Xns9FCC9979E141Cduckrulestheuniverse@nomail.afraid.org> <jdqis4$ttl$1@dont-email.me> <eli$1201021425@qz.little-neck.ny.us>Show Full Headers
Complete Article Headers
Message-ID: <jdvd3s$955$1@dont-email.me> Subject: Re: how to have x-no-archive added in headers with trn Date: Tue, 03 Jan 2012 17:15:40 +0000 From: auto-generated@privacy.invalid (bit rot) References: <jdnk5q$gt7$4@dont-email.me> <Xns9FCC9979E141Cduckrulestheuniverse@nomail.afraid.org> <jdqis4$ttl$1@dont-email.me> <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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Lines: 101 Injection-Date: Tue, 3 Jan 2012 17:15:40 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="d2w4qztRGJim2zsHoBUtug"; logging-data="9381"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gQozAhqW4Nyu1rsogQ/zdsUSkNf3YZzc=" X-Smoker: yes X-Newsreader: trn 4.0-test77 (Sep 1, 2010) X-snerk-n-jerk-headers: yes X-nay: no Cancel-Lock: sha1:v9kontOU7DD5XsYlfcxWScKj4sE= X-no-archive: yes X-X-X: yes X-serial-killfiler: yes X-Original-Bytes: 5189