🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90319

Re: Observations and information about nntp Mime-Version:, set

#90319
From: Michael Bäuerle
Date: Wed, 26 Apr 2023 08:19
53 lines
2961 bytes
Peter wrote:
> 
> Looking at these three lines, why bother with the Mime-version when I can't
> find anyone who doesn't use Mime version 1.0 (is there another version)?

No, but RFC 2049 specifies in section 2:
<https://datatracker.ietf.org/doc/html/rfc2049#section-2>
| 
| 2.  MIME Conformance
| 
|   [...]
|   A mail user agent that is MIME-conformant MUST:
|
|    (1)   Always generate a "MIME-Version: 1.0" header field in
|          any message it creates.

Since RFC 5536 this requirement applies to Usenet too:
| 
| 2.3.  MIME Conformance
|
|   User agents MUST meet the definition of MIME conformance in
|   [RFC2049] and MUST also support [RFC2231].  

> What's the difference between the Content-Transfer-Encoding: of 7bit, 8bit
> & quoted-printable? (and please don't say 1 bit as that's not funny)

They are just labels to indicate whether the encoding of the body needs
an 8-bit transport protocol or not.

"7bit" is the default and needs no declaration.

Note that there are non-ASCII encodings that don't need an 8-bit clean
transport protocol (e.g. "UTF-7" or "ISO-2022-JP").

> Is there a good reason to use a character set that isn't ISO-8859-1?
> (Most seem to use "us-ascii", "UTF-*" & "ISO-8859-1".)

"US-ASCII", "ISO-8859-1" and "UTF-8" are supersets of each other
(codepoints are mapped 1:1 to the range up to U+007F, and to the range
up to U+00FF respectively, in Unicode).

This means that an Unicode UTF can be directly applied to "ISO-8859-1"
codepoints (no mapping table is required). If Unicode data is received
and does not contain codepoints beyond U+00FF, it can be converted to
"ISO-8859-1" by decoding the UTF (again no mapping table is required).

Today in general "UTF-8" should be preferred if "US-ASCII" is not
sufficient. For Usenet a fallback to "ISO-8859-1" can be useful because
many old newsreaders with MIME capability have problems with Unicode
(work better with 8-bit encodings).


[Xpost reduced]
Technical Details
Message-ID: <AABkSN6aDOUAAALy.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
References: <u2a2p5$17h7q$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <AABkSN6aDOUAAALy.A3.flnews@WStation5.stz-e.de>
Subject: Re: Observations and information about nntp Mime-Version:, set
Date: Wed, 26 Apr 2023 08:19:38 +0000
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
References: <u2a2p5$17h7q$1@dont-email.me>
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.nntp
Lines: 53
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net 35+VkuQ9K3UVL08+DVxGjQyg+cQ4N1DI4pNl3d4nUJxPMFiCwm
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:FxXb5Anw2Qi7ZhwNspAzY/cQbJc= sha256:7jLbGKTG2ot5nNeiWECReMV9RzamVTox5vEMQ5hNiBc= sha1:fLsx1QDBo5Z9U3OFJ37tNffxnEg=
Injection-Date: Wed, 26 Apr 2023 08:19:38 -0000
User-Agent: flnews/1.2.0pre22 (for NetBSD)