Article View: news.software.nntp
Article #86724Re: How are supersedes and Message-ID being handled now?
From: Joshua Cranmer 🐧
Date: Sun, 03 May 2015 18:49
Date: Sun, 03 May 2015 18:49
42 lines
4090 bytes
4090 bytes
On 5/3/2015 12:51 PM, Michael Baeuerle wrote:
> I agree with you that current MIME format is ugly, but UTF-8 will not be
> a simple drop-in replacement for US-ASCII. Since several years there is
> this recommendation in RFC5198 ("Unicode Format for Network
> Interchange"):
> |
> | Before transmission, all character sequences SHOULD be normalized
> | according to Unicode normalization form "NFC" (see Section 3)
>
> But nobody cares and most newsreaders simply ignore this completely
> (do no normalization at all and fail to compare and match Unicode
> strings correctly).
So, there's a funny thing about normalization. Only one person has to do
the normalization, but no one wants to be that person. In truth, nearly
all strings with non-ASCII characters tend to be ultimately started by
someone typing them on a keyboard. As long as IMEs generate only
NFC-normalized strings, you can generally ignore NFC and no one will
notice or care.
> A possible first step with no collateral damage and the same transport
> protocol would be the introduction of additional header fields with
> UTF-8 encoding. If the newsreader need to use RFC2047 encoding, it
> creates a second header field with direct UTF-8 encoding.
There's no need. Usenet is very tolerant of 8-bit headers, RFC 5536
notwithstanding. My understanding is that RFC 5536 gives a dictate of
ASCII headers primarily to be a subset of RFC 5322, which is US-ASCII,
but RFC 6532 provides for UTF-8 header values to allow non-ASCII email
addresses.
You have to write clients to conform to reality, not the wishful
thinking that specifications tend to inhabit. The reality is that 8-bit
headers are in use--I've even found a few NNTP messages that started
with a UTF-8 BOM. It's also true that non-UTF-8 8-bit headers exist, but
given that UTF-8 text is very distinct in its byte pattern, the only
practical recommendation for clients is "parse headers as UTF-8; if that
fails, try several heuristics to guess the charset (e.g., body charset)."
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Technical Details
Message-ID:
<mi5qh9$ebq$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.nntp.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mailReferences:
<mgfuq0$8ee$1@news.mixmin.net> <mggkev$j2u$1@dont-email.me> <mgst9h$nvr$1@news.mixmin.net> <mgtpgp$ije$1@dont-email.me> <mgv2ro$8u6$1@news.mixmin.net> <mh0e69$4d6$1@dont-email.me> <mh0puu$one$1@news.mixmin.net> <mh3qq9$6j5$1@dont-email.me> <mh4fbh$jft$1@news.mixmin.net> <mh714j$40v$1@dont-email.me> <mh77tl$emi$1@news.mixmin.net> <mh92h9$p83$1@dont-email.me> <mhtv8k$s1i$1@news.trigofacile.com> <mhupvp$3c6$1@dont-email.me> <mhvgje$j5p$1@news.trigofacile.com> <mi2pcd$cvl$1@dont-email.me> <AABVRjobIhkAAAoh.A1.flnews@WStation1.micha.freeshell.org>Show Full Headers
Complete Article Headers
Message-ID: <mi5qh9$ebq$1@dont-email.me> Subject: Re: How are supersedes and Message-ID being handled now? Date: Sun, 3 May 2015 13:49:10 -0500 From: Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> References: <mgfuq0$8ee$1@news.mixmin.net> <mggkev$j2u$1@dont-email.me> <mgst9h$nvr$1@news.mixmin.net> <mgtpgp$ije$1@dont-email.me> <mgv2ro$8u6$1@news.mixmin.net> <mh0e69$4d6$1@dont-email.me> <mh0puu$one$1@news.mixmin.net> <mh3qq9$6j5$1@dont-email.me> <mh4fbh$jft$1@news.mixmin.net> <mh714j$40v$1@dont-email.me> <mh77tl$emi$1@news.mixmin.net> <mh92h9$p83$1@dont-email.me> <mhtv8k$s1i$1@news.trigofacile.com> <mhupvp$3c6$1@dont-email.me> <mhvgje$j5p$1@news.trigofacile.com> <mi2pcd$cvl$1@dont-email.me> <AABVRjobIhkAAAoh.A1.flnews@WStation1.micha.freeshell.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 42 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 3 May 2015 18:48:09 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8cedddb29338592f734c41b16a68fadc"; logging-data="14714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wmZU+Ti6IoFk7NDU6JMflD2yjVdlJeOg=" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; In-reply-to: <AABVRjobIhkAAAoh.A1.flnews@WStation1.micha.freeshell.org> Cancel-Lock: sha1:Slau/a8waZOckxjuwkDi4geuaZk=