Article View: news.software.readers
Article #265976Re: Getting MIME headers right
From: Michael Bäuerle
Date: Wed, 12 Apr 2023 16:31
Date: Wed, 12 Apr 2023 16:31
54 lines
3558 bytes
3558 bytes
Richard wrote: > Michael Bäuerle wrote: > > > > I think such mistakes would not occur if trn would automatically convert > > the content to quote into the encoding used by the editor. > > The source encoding is declared in the MIME header of the article. > > The source encoding *MAY* be declared in the MIME header of the article. > There's no guarantee that it actually is declared as such. We've > already stated that malformed messages can be injected into news due > to user error (e.g. they didn't configure their editor to add > appropriate MIME headers). Please forget incoming malformed messages completely. If something is already broken, it is completely acceptable that you need to repair it manually. My proposal is not about repairing malformed articles. What should be expected from a newsreader is correct behaviour with RFC 5536 conformant messages. Because RFC 5536 requires MIME, every article with 8-bit data in the body, but without a MIME declaration in the header, is malformed by definition. > > 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. If trn does not know what the editor expects, the user should be able to configure the encoding. > > The conversion itself can be done with iconv. > > This is a unix-centric assumption. It *could* be done with iconv. Nobody will complain if something else is used, as long as it works. > > If the user has configured e.g. US-ASCII to quote an article written in > > Unicode, replacement characters should be inserted if the encoding > > conversion is not possible (instead of simply copying the bytes that are > > then interpreted wrong by the editor and the recipients). > > 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. 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.
Technical Details
Message-ID:
<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-mailReferences:
<u0ffth$1u1oi$1@news.xmission.com> <u141o0$28gtp$1@news.xmission.com> <u143j5$2m3va$4@dont-email.me> <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de> <u16j67$29qek$1@news.xmission.com>Show Full Headers
Complete Article Headers
Message-ID: <AABkNtz+CKEAAAdh.A3.flnews@WStation5.stz-e.de> Subject: Re: Getting MIME headers right Date: Wed, 12 Apr 2023 16:31:58 +0000 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <u0ffth$1u1oi$1@news.xmission.com> <u141o0$28gtp$1@news.xmission.com> <u143j5$2m3va$4@dont-email.me> <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de> <u16j67$29qek$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 Injection-Date: Wed, 12 Apr 2023 16:31:58 -0000 Lines: 54 X-Orig-Path: not-for-mail Cancel-Lock: sha1:2EQTZrw5QJ3xf67ZzRANMIsV+IQ= sha256:kbdzYgIi8uKvO75eArWOm1QFyFKJtPzyyHoT1np8H8g= sha1:GC//L3qrDEgt36E3vC7VAwcQKSM= User-Agent: flnews/1.2.0pre21 (for NetBSD) Newsgroups: news.software.readers Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> X-Trace: individual.net k2vqfZrTRi8WTnKcjxKi0wpzQPdkoXXCP2/sNupDTxnea8uT+K Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed