๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265980

Re: Getting MIME headers right

#265980
From: Richard
Date: Wed, 12 Apr 2023 17:21
60 lines
3849 bytes
[Please do not mail me a copy of your followup]

Michael =?ISO-8859-1?Q?B=E4uerle?= <michael.baeuerle@gmx.net> spake the secret code
<AABkNtz+CKEAAAdh.A3.flnews@WStation5.stz-e.de> thusly:

>Richard wrote:
>> Michael Bรคuerle wrote:
>> > The target encoding should be the one the editor is using (manually
>> > configured, if trn cannot automatically detect it).
>> 
>> How can trn know anything about your editor?  It's entirely outside of
>> trn's control.
>
>To be honest I don't know how trn works, I only see the results.

trn is a traditional command-line news reader and doesn't directly
post anything at all.  When you request to post a follow-up or new
article, trn invokes your editor to prepare the message (including all
headers appearing "naked" in the editor) and then confirms that you
want to post the edited message.  If confirmed, trn injects the
article into the newsfeed with a program called inews that does the
actual posting.  The source for inews comes with trn and is
distributed with trn but the act of injecting a news article is
considered the responsibility of a program separate from trn and can
be configured to be some other program besides inews.

Similarly, composing an article -- including all it's headers -- is a
responsibility of an editor program and not trn.

>If trn does not know what the editor expects, the user should be able
>to configure the encoding.

They can, but often don't :).

>> All of this seems outside the control of trn and mostly a consequence
>> of how you edit the article.  The existing NEWSPOSTER environment variable
>> can be configured to a script that would do all that you propose.
>
>Not every user is a programmer too.

True, but trn assumes a certain level of knowledge in order to use its
more advanced features, such as configuring things through environment
variables.

Because trn doesn't own "the whole process" like a canned GUI-based
news reader on a macOS or Windows system, it assumes the user knows
how to deal with such things on their own.

>If this must be implemented with a script, it should be shipped with
>the newsreader and the documentation should explain how to produce
>RFC 5536 conformant articles with it.

There really isn't any way to write such a script and make it useful
to everyone.  Trn can supply examples (and does) but invoking it
unconditionally would be a mistake.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
            The Terminals Wiki <http://terminals-wiki.org>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Technical Details
Message-ID: <u16p9v$29tdt$1@news.xmission.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <u0ffth$1u1oi$1@news.xmission.com> <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de> <u16j67$29qek$1@news.xmission.com> <AABkNtz+CKEAAAdh.A3.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <u16p9v$29tdt$1@news.xmission.com>
Subject: Re: Getting MIME headers right
Date: Wed, 12 Apr 2023 17:21:03 +0000
From: legalize+jeeves@mail.xmission.com (Richard)
References: <u0ffth$1u1oi$1@news.xmission.com> <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de> <u16j67$29qek$1@news.xmission.com> <AABkNtz+CKEAAAdh.A3.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Organization: multi-cellular, biological
Sender: legalize+jeeves@mail.xmission.com
Reply-To: (Richard) legalize+jeeves@mail.xmission.com
Injection-Date: Wed, 12 Apr 2023 17:21:03 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:2607:fa18:0:beef::4"; logging-data="2422205"; mail-complaints-to="abuse@xmission.com"
X-Reply-Etiquette: No copy by email, please
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: legalize@shell.xmission.com (Richard)
Lines: 59