Thread View: news.software.nntp
26 messages
26 total messages
Started by Michael Baeuerle
Thu, 07 May 2015 13:26
Unicode in USENET article headers
Author: Michael Baeuerle
Date: Thu, 07 May 2015 13:26
Date: Thu, 07 May 2015 13:26
137 lines
7385 bytes
7385 bytes
Current situation: RFC5536 [1] define the whole header as US-ASCII encoded. If an article header should contain something else, MIME (RFC2047 [2]) transfer encoding is required to produce a standard compliant article. Problem: MIME encoded words are ugly and complicate to handle. People want an easier way to implement agents. Possible solutions for future article standard: S1) Redefine the whole header and allow to use Unicode in UTF-8 transformation format. S2) Redefine only parts of the header to do so. In this case the question is what parts should be Unicode and which parts should not. The potential problem with both variants is, that Unicode is an ambigous encoding with canonically equivalence as fundamental design principle. The tests below revealed, that there may be issues that can break compatibility with existing software if this is simply ignored (and data is not handled as Unicode string [5] but instead as an octet or Unicode codepoint sequence). The goal ist to give an overview of the potential problems and to discuss how they can be mitigated to preserve an acceptable level of backward compatibility. The test articles can be found in [3] and three other groups that have canonically equivalent names. A fourth group [4] exist with a name for which Unicode define exactly one valid codepoint sequence (this include the fact, that normalization forms C and D are the same for this name). ======================================================================== Potential problems: P1) Compare may fail / Identifiers may be ambigous The most relevant identifiers in article headers are: - Message-IDs - Newsgroup lists Unicode defines how to normalize strings so that they can be compared as octet streams [5]. Current standards [6] recommend (but not mandate!) to apply normalization form C (NFC) to all Unicode data before transmission. P2) Missing or wrong normalization Because Unicode normalization is not less complicated than MIME, it is likely that this (working) solution is ignored or not implemented correctly. P3) Identifiers defined as "not Unicode strings" If identifiers (and data in general) are considered to be Unicode compliant codepoint sequences, but not Unicode strings with the defined semantics, problems will occur if any part of an agent uses components (libraries, filesystems, etc.) that don't follow this definition but use Unicode strings with the defined semantics. See the following example. ======================================================================== Example: Apple machines (at least on HFS+ [7] filesystems) use Unicode strings as filenames [8][9][10]. This means that inside a directory there can't be multiple files/subdirectories with canonically equivalent names. And this means, that the created filename may not be the same octet stream and not even the same Unicode codepoint sequence if read back from the filesystem. Generic normalization before creating the name don't change this, because neither NFC nor NFD is used internally by the HFS+ filesystem. If any agent use such a filesystem as database with elements named after identifiers from article headers, the database gets corrupted if canonically equivalent Unicode identifiers are used for different items. That other canonically equivalent representations exist is sufficient for the failure, corresponding items don't have to be present. In the test group [3], there are screenshots that show the result of a corrupted header cache triggered by the canonically equivalent group names (article header and body are displayed together that are unrelated over group boundaries). It is likely that the same problem will occur if the spool directory for leafnode [11] is placed on a HFS+ filesystem. Note that this example is platform dependent and the problem is completely invisible on e.g. ext2/3/4 filesystems on GNU/Linux. ======================================================================== Some possible mitigations: M1) Use Unicode strings (respect canonically equivalence as defined) Unicode is well defined and if normalization would be mandatory for all agents, at least such problems as in the example above can not occur. This would match S1 above and work for the whole header (including the field names), but may break backward compatibility if really used everywhere. M2) Write/change software to handle identifiers not as Unicode strings with the defined semantics, but in a different suitable way instead. Care must be taken to hold away the data from other modules that use Unicode semantics. For the example above, this would not be hard. A transfer encoding like base64 can be applied to the directory names in the header cache, so that they look like US-ASCII for the filesystem with Unicode semantics. According to Dennis, the tin newsreader use some kind of hash algorithm for this purpose. Can be combined with S1 and S2 above. But existing software that is unmaintained may be (and stay) broken. M3) Only allow Unicode for selected header fields without identifiers Some header fields are not relevant for transport and normally are not used as identifiers at all (e.g. "Subject" may only be used as identifier if threading after "References" failed). Any valid Unicode codepoint sequence in UTF-8 representation should simply work here. Would match S2 above and provide better backward compatibility. M4) Stay with RFC2047 transfer encoding Ugly, but it works. Now widely supported after more than a decade. Comments are welcome. ______________ [1] <https://tools.ietf.org/html/rfc5536> [2] <https://tools.ietf.org/html/rfc2047> [3] <nntp://news.trigofacile.com/trigofacile.test.%E1%BE%85> [4] <nntp://news.trigofacile.com/trigofacile.test.%CF%85%CF%84%CF%868> [5] <http://www.unicode.org/reports/tr15> [6] <https://tools.ietf.org/html/rfc5198> [7] <http://www.applexsoft.com/glossary/hfs-plus.html> [8] <http://unicodebook.readthedocs.org/en/latest/operating_systems.html#mac-os-x> [9] <https://developer.apple.com/library/mac/qa/qa1173/_index.html> [10] <https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#UnicodeSubtleties> [11] <http://leafnode.sourceforge.net>
Re: Unicode in USENET article headers
Author: Richard Kettlewell
Date: Thu, 07 May 2015 13:44
Date: Thu, 07 May 2015 13:44
22 lines
2365 bytes
2365 bytes
Michael Baeuerle <michael.baeuerle@stz-e.de> writes: > Current situation: > RFC5536 [1] define the whole header as US-ASCII encoded. If an article > header should contain something else, MIME (RFC2047 [2]) transfer > encoding is required to produce a standard compliant article. > > Problem: > MIME encoded words are ugly and complicate to handle. People want an > easier way to implement agents. You’re still going to see this in practice - people are still using clients from the 1990s, so it’s not particularly realistic to imagine they’ll stop using clients which emit RFC2047 headers. i.e. the complexity will remain even if you can promulgate a spec saying it’s not required. Old articles using RFC2047 won’t change, either, though it’s true that normally one looks at them less often than recently posted ones. -- http://www.greenend.org.uk/rjk/
Re: Unicode in USENET article headers
Author: Adam H. Kerman
Date: Thu, 07 May 2015 14:43
Date: Thu, 07 May 2015 14:43
44 lines
2827 bytes
2827 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote: >Current situation: >RFC5536 [1] define the whole header as US-ASCII encoded. If an article >header should contain something else, MIME (RFC2047 [2]) transfer >encoding is required to produce a standard compliant article. >Problem: >MIME encoded words are ugly and complicate to handle. People want an >easier way to implement agents. Uh, no. The problem is that certain authors get confused that they are sending email and not word processing documents. Pointless non-ASCII characters end up in Subject headers that truly belong in word processing documents and not text messages. For instance, if an author chooses LEFT DOUBLE QUOTE instead of ASCII double quote, or if Google Groups adds stray non-breaking spaces between words that it "just knows" require non-breaking spaces, that results in turning plain text into something else. None of this has anything to do with not writing in English. People tend to create problems where none exist. What's next, you'll insist on line boundaries, soft or hard, within the Subject header? >Possible solutions for future article standard: >S1) >Redefine the whole header and allow to use Unicode in UTF-8 >transformation format. >S2) >Redefine only parts of the header to do so. In this case the question >is what parts should be Unicode and which parts should not. Oh dear ghod How is this not uglier than announcing that encoded words will appear on Subject? I'm not commenting on the rest.
Re: Unicode in USENET article headers
Author: Russ Allbery
Date: Thu, 07 May 2015 15:31
Date: Thu, 07 May 2015 15:31
18 lines
1817 bytes
1817 bytes
Michael Baeuerle <michael.baeuerle@stz-e.de> writes:
> Potential problems:
One of the big ones that you didn't mention, but which was the overriding
concern when this came up in the USEFOR working group, is that you pretty
thoroughly break compatibility with mail. This in turn causes practical
problems for merged mail and news clients, such as Thunderbird.
I think there have been some proposals for accepting Unicode headers in
mail without using RFC 2047 encoding, but I admit to having stopped paying
attention and don't know if any of them ever achieved any traction.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Unicode in USENET article headers
Author: David Ritz
Date: Thu, 07 May 2015 16:44
Date: Thu, 07 May 2015 16:44
89 lines
4693 bytes
4693 bytes
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-1258333956-1431016957=:19276
Content-Type: text/plain; CHARSET=UTF-8
Content-Transfer-Encoding: 8BIT
Content-ID: <alpine.OSX.2.20.1505071143171.19276@mako.ath.cx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, 07 May 2015 08:31 -0700,
in article <87h9ros8t3.fsf@hope.eyrie.org>,
Russ Allbery <eagle@eyrie.org> wrote:
> Michael Baeuerle <michael.baeuerle@stz-e.de> writes:
>> Potential problems:
> One of the big ones that you didn't mention, but which was the
> overriding concern when this came up in the USEFOR working group, is
> that you pretty thoroughly break compatibility with mail. This in
> turn causes practical problems for merged mail and news clients,
> such as Thunderbird.
> I think there have been some proposals for accepting Unicode headers
> in mail without using RFC 2047 encoding, but I admit to having
> stopped paying attention and don't know if any of them ever achieved
> any traction.
While this discussion seems to have focused exclusively with the use
of raw 8-bit characters, using UTF-8, in message headers, it
completely ignores the fact that users may not be quite so willing to
cooperate with the use of this character set, in the real world.
Since I come at this from the network abuse side of things, I'm seeing
a load of Usenet spam, coming from a user who appears to be using raw
Windows-1252 8-bit characters in the address part of From headers.
To my eye, this is completely contrary to the specifications laid out
in RFC 5532 3.4.1.
Here are a few examples, where message bodies either consist
exclusively of quoted text or copy and pasted headers. I've done my
best at translating the character set to UTF-8, although there's one
character I've yet to identify.
pøliticoßoy@nyb.com
<2TxZw.22632$FV4.4818@fx18.iad>
<aIU_w.421655$IH4.287462@fx08.iad>
§eraphim@hvn.com
<rJz_w.132059$Ju6.14967@fx15.fr7>
<g8u%w.172123$Q76.70750@fx28.fr7>
ßeaverßait@dam.com
<MZA%w.57157$FV4.45418@fx18.iad>
<d991x.995$0J4.522@fx24.iad>
pøliticoßoy@noyb.com
<i9AYw.188023$%p.27286@fx07.iad>
<NkYYw.7744$nU4.696@fx13.iad>
§pamlush@noyb.com (undefined character between m & l)
<FXVYw.102066$r86.97097@fx26.fr7>
<JjUZw.144277$uO6.110473@fx02.fr7>
§pam§hame@your.id
<W%s1x.169370$Ju6.167174@fx15.fr7>
<CFz0x.178127$WO5.156993@fx12.fr7>
§pam§lam@noyb.com
<vDBYw.130177$qR6.31150@fx07.fr7>
<%MBYw.124759$Wi4.42618@fx04.fr7>
ßeaverßait@dam.com
<MZA%w.57157$FV4.45418@fx18.iad>
<d991x.995$0J4.522@fx24.iad>
- --
David Ritz <dritz@mindspring.com>
Be kind to animals; kiss a shark.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlVLlooACgkQUrwpmRoS3utlTgCfehzhpTyI/XvMcm37gfnYcnAi
mLcAn1lCZJyjxuu7UdoPB601rMbXWS7G
=M/a5
-----END PGP SIGNATURE-----
--0-1258333956-1431016957=:19276--
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Thu, 07 May 2015 17:32
Date: Thu, 07 May 2015 17:32
47 lines
3246 bytes
3246 bytes
Russ Allbery wrote: > Michael Baeuerle <michael.baeuerle@stz-e.de> writes: > > > > Potential problems: > > One of the big ones that you didn't mention, but which was the overriding > concern when this came up in the USEFOR working group, is that you pretty > thoroughly break compatibility with mail. This in turn causes practical > problems for merged mail and news clients, such as Thunderbird. Yes, this point is really missing. > I think there have been some proposals for accepting Unicode headers in > mail without using RFC 2047 encoding, but I admit to having stopped paying > attention and don't know if any of them ever achieved any traction. Here is a proposed standard for mail headers: <https://tools.ietf.org/html/rfc6532> It's very permissive and allow Unicode in atoms, comments, quoted strings and domains. It's near what I have named S1. - Header field names must be US-ASCII - Normalization is not mandatory, but recommended (following RFC5198) - RFC2047 transfer encoding is not recommended, but allowed Assuming we want to use this for USENET too, the Message-ID is the first what come to mind. It is allowed to create Unicode Message-IDs, but no normalization is mandatory. This allows users to create canonically equivalent Message-IDs and transmit them to the network. If other users e.g. insert them into their "References" field and apply the recommended normalization to the header, entries may disappear and become replaced with equivalent ones. If NNTP protocol data follows RFC5198, some IDs may become hidden or mapped to others. The example with the broken disk-cache can occur with it too. IMHO the main flaw ist the normalization. It should be either mandatory or forbidden. With the definition as SHOULD, nobody can rely on it *and* there is no option to define canonically equivalent identifiers as distinct. Looking at mail/news compatibility: Because RFC6532 allows nearly everything, it looks hard to invent something for news that would not be a valid subset of it.
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Thu, 07 May 2015 19:39
Date: Thu, 07 May 2015 19:39
20 lines
2133 bytes
2133 bytes
Hi Michael, > The most relevant identifiers in article headers are: > - Message-IDs > - Newsgroup lists Two other fields that would cause problems are: - Path (because it is used for not refeeding an article to a peer that already saw it; the contents of the Path: header field is checked against an exclusion list written by the newsmaster); - Distribution (similar problem than the path). -- Julien ÉLIE « 21.1.1 How to convert mSQL tools for MySQL? 1. Run the shell script msql2mysql on the source. This requires the replace program, which is distributed with MySQL. 2. Compile. 3. Fix all compiler errors. » (MySQL online manual)
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Thu, 07 May 2015 20:34
Date: Thu, 07 May 2015 20:34
38 lines
2435 bytes
2435 bytes
Julien ÉLIE wrote: > Hi Michael, > > > The most relevant identifiers in article headers are: > > - Message-IDs > > - Newsgroup lists > > Two other fields that would cause problems are: > - Path (because it is used for not refeeding an article to a peer that > already saw it; the contents of the Path: header field is checked > against an exclusion list written by the newsmaster); > - Distribution (similar problem than the path). I have only worked on a client side implementation yet and it looks like I have overlooked some network distribution issues. Thanks for clarification. As you have already written in the test group, fields like "Message-ID" (and IMHO at least the "Path" field too) could simply be defined to stay US-ASCII for news. Unicode is mainly useful for the fields that contain content used by humans. Surely: - Newsgroups - From - Subject - Followup-To - Reply-To - Organization Maybe too: - Distribution - User-Agent -- Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das wohl nicht mehr... [Eric Brücklmeier in dse]
Re: Unicode in USENET article headers
Author: Joshua Cranmer 🐧
Date: Thu, 07 May 2015 20:43
Date: Thu, 07 May 2015 20:43
20 lines
2338 bytes
2338 bytes
On 5/7/2015 10:31 AM, Russ Allbery wrote: > Michael Baeuerle <michael.baeuerle@stz-e.de> writes: > >> Potential problems: > > One of the big ones that you didn't mention, but which was the overriding > concern when this came up in the USEFOR working group, is that you pretty > thoroughly break compatibility with mail. This in turn causes practical > problems for merged mail and news clients, such as Thunderbird. > > I think there have been some proposals for accepting Unicode headers in > mail without using RFC 2047 encoding, but I admit to having stopped paying > attention and don't know if any of them ever achieved any traction. RFC 6532, been around for 3 years now (really that old?). I've already been making changes to support it. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Re: Unicode in USENET article headers
Author: Joshua Cranmer 🐧
Date: Thu, 07 May 2015 21:59
Date: Thu, 07 May 2015 21:59
68 lines
4917 bytes
4917 bytes
On 5/7/2015 8:26 AM, Michael Baeuerle wrote: > Current situation: > RFC5536 [1] define the whole header as US-ASCII encoded. If an article > header should contain something else, MIME (RFC2047 [2]) transfer > encoding is required to produce a standard compliant article. Have you read and followed RFC 6530 and friends, as well as the list traffic for the IETF eai and ima working groups? These give you roughly the history of how the email people decided to sort out non-ASCII email. The foremost issue in email is allowing non-ASCII local parts, which indirectly affects everyone who uses addr-spec. The solution of EAI was to effectively create a message/global type that is UTF-8 (message/rfc822 remains 7-bit), and to sort of require that message/global get transported by requiring extra actions on part of clients in SMTP, POP, and IMAP. EAI decided against doing in-flight downgrading, so it's entirely up to the client to decide when to use message/global versus message/rfc822. RFC 6530 ducks the issue of email normalization, continuing in the tradition of "thou shalt not interpret a localpart unless you are the destination MDA," the normalization of email addresses is undefined. However, they do advise that clients may normalize to NFC/NFKC before hand, so they suggest that servers not have email addresses that match after normalization. If you translate EAI to NNTP, what you'd get is roughly the following: * A capability to advertise UTF-8 support on the part of the server. * A command that the client runs to indicate "I can read UTF-8" * The server downgrades messages to clients that don't run aforementioned command * Don't make newsgroups that don't match after NFC. Actually, I'd just go so far as to require that newsgroup names be in NFC. > Problem: > MIME encoded words are ugly and complicate to handle. People want an > easier way to implement agents. RFC 2047 is more often incorrectly implemented than correctly implemented (particularly when it comes to splitting words [1]). Unfortunately, it's also going to be needed to be supported for at least 20 years, simply because clients aren't going to update particularly quickly. > P1) Compare may fail / Identifiers may be ambigous > The most relevant identifiers in article headers are: > - Message-IDs > - Newsgroup lists > Unicode defines how to normalize strings so that they can be compared > as octet streams [5]. Current standards [6] recommend (but not mandate!) > to apply normalization form C (NFC) to all Unicode data before > transmission. For any domain name not in an addr-spec (i.e., including message-id), require that the domain name be in its A-label (x-*) form. DNS guarantees that it exists, it lets you bypass the IDNA clusterfuck, and it solves the normalization problem very nicely and easily. [1] RFC 2047 mandates that you don't split in the middle of a multibyte character. Doing this properly in a charset-agnostic way requires carefully adding characters one at a time until you find the longest length before wrapping... and if you're using a language like Java where non-BMP characters are actually two characters, it's even more annoying. It's actually why I included an emoji character in my display name. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Thu, 07 May 2015 23:24
Date: Thu, 07 May 2015 23:24
97 lines
6061 bytes
6061 bytes
Joshua Cranmer 🐧 wrote: > On 5/7/2015 8:26 AM, Michael Baeuerle wrote: > > > > Current situation: > > RFC5536 [1] define the whole header as US-ASCII encoded. If an article > > header should contain something else, MIME (RFC2047 [2]) transfer > > encoding is required to produce a standard compliant article. > > Have you read and followed RFC 6530 and friends, as well as the list > traffic for the IETF eai and ima working groups? These give you roughly > the history of how the email people decided to sort out non-ASCII email. I have read the RFCs, but not the lists. > The foremost issue in email is allowing non-ASCII local parts, which > indirectly affects everyone who uses addr-spec. The solution of EAI was > to effectively create a message/global type that is UTF-8 > (message/rfc822 remains 7-bit), and to sort of require that > message/global get transported by requiring extra actions on part of > clients in SMTP, POP, and IMAP. EAI decided against doing in-flight > downgrading, so it's entirely up to the client to decide when to use > message/global versus message/rfc822. And that is what I think should not be copied for USENET (or there will be decades to wait for adoption). What I want to discuss in this thread: Is there a possibility to change only the article format? In a way that is compatible with mail (a subset of what is defined there) and compatible with current USENET (at least to an acceptable degree) but don't require a new or updated network for distribution. > RFC 6530 ducks the issue of email normalization, continuing in the > tradition of "thou shalt not interpret a localpart unless you are the > destination MDA," the normalization of email addresses is undefined. > However, they do advise that clients may normalize to NFC/NFKC before > hand, so they suggest that servers not have email addresses that match > after normalization. If groupnames stay US-ASCII, the distribution should work (even if the "From:" and other fields containing 'addr-spec' tokens that agents may not understand). > If you translate EAI to NNTP, what you'd get is roughly the following: > * A capability to advertise UTF-8 support on the part of the server. > * A command that the client runs to indicate "I can read UTF-8" > * The server downgrades messages to clients that don't run > aforementioned command I don't think we'll see that into all servers within the next decade. > * Don't make newsgroups that don't match after NFC. Actually, I'd just > go so far as to require that newsgroup names be in NFC. Yes, or stay with ASCII for groupnames. > > Problem: > > MIME encoded words are ugly and complicate to handle. People want an > > easier way to implement agents. > > RFC 2047 is more often incorrectly implemented than correctly > implemented (particularly when it comes to splitting words [1]). > Unfortunately, it's also going to be needed to be supported for at > least 20 years, simply because clients aren't going to update > particularly quickly. By far the most encoding errors and data corruption I see is in the "Subject" field. So even don't touching the structured header fields at all may make things work better. > [...] > [1] RFC 2047 mandates that you don't split in the middle of a multibyte > character. Doing this properly in a charset-agnostic way requires > carefully adding characters one at a time until you find the longest > length before wrapping... and if you're using a language like Java > where non-BMP characters are actually two characters, it's even more > annoying. It's actually why I included an emoji character in my display > name. As I have implemented this into my MIME encoder, we had several discussions in the german groups what RFC2047 means with "character" and "self contained". Is it allowed to split at the boundary of an UTF-8 sequence, or is this a violation if the following UTF-8 sequence(es) refer to codepoints with nonzero character combining class? If multiple codepoints are composed to a single glyph, is every codepoint a "character" or is the composed glyph a "character" in the sense of the standard. There was no consensus. I think an encoded word is not "self contained" if the first codepoint try to combine with something outside the encoded word, because the glyphs of an encoded word can't be rastered without context in this case. Therefore I have implemented the stricter option (only split before codepoints with zero character combining class). -- Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das wohl nicht mehr... [Eric Brücklmeier in dse]
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Fri, 08 May 2015 10:02
Date: Fri, 08 May 2015 10:02
54 lines
2886 bytes
2886 bytes
Hi Michael,
> I have only worked on a client side implementation yet and it looks like
> I have overlooked some network distribution issues. Thanks for
> clarification.
Another thing that may interest clients is the PAT command (currently
XPAT) to search in headers, and perhaps also in bodies.
XPAT Subject 12-42 utf8search
If headers are not normalized, it will prevent such searches from
returning the expected results...
> As you have already written in the test group, fields like "Message-ID"
> (and IMHO at least the "Path" field too) could simply be defined to stay
> US-ASCII for news.
Pathes are usually domain names, so it would not be weird to see pathes
like "ουτοπία.δπθ.gr" instead of "xn--kxae4bafwg.xn--pxaix.gr" in Punycode!
> Unicode is mainly useful for the fields that contain
> content used by humans.
>
> Surely:
> - Newsgroups
> - From
> - Subject
> - Followup-To
> - Reply-To
> - Organization
Maybe also: Sender, Approved, Summary, Keywords.
> Maybe too:
> - Distribution
> - User-Agent
And Control.
--
Julien ÉLIE
« 21.1.1 How to convert mSQL tools for MySQL?
1. Run the shell script msql2mysql on the source. This requires the
replace program, which is distributed with MySQL.
2. Compile.
3. Fix all compiler errors. » (MySQL online manual)
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Fri, 08 May 2015 10:09
Date: Fri, 08 May 2015 10:09
14 lines
1925 bytes
1925 bytes
Hi Joshua, > RFC 6532, been around for 3 years now (really that old?). I've > already been making changes to support it. Incidentally, is the current version of Thunderbird dealing well with UTF-8 newsgroup names? At least v31.6.0 running on Max OS X Yosemite shows "trigofacile.test.αÌÌÍ " instead of "trigofacile.test.ᾅ" in the list of newsgroups. -- Julien ÉLIE « Vinum bonum laetificat cor hominis. »
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Fri, 08 May 2015 11:16
Date: Fri, 08 May 2015 11:16
12 lines
1723 bytes
1723 bytes
Julien ÉLIE wrote: > > Another thing that may interest clients is the PAT command (currently > XPAT) to search in headers, and perhaps also in bodies. > > XPAT Subject 12-42 utf8search > > If headers are not normalized, it will prevent such searches from > returning the expected results... The same is true for a client that try to search inside an Unicode article body that is not normalized.
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Fri, 08 May 2015 11:30
Date: Fri, 08 May 2015 11:30
31 lines
2506 bytes
2506 bytes
Hi Michael, > Current situation: > RFC5536 [1] define the whole header as US-ASCII encoded. If an article > header should contain something else, MIME (RFC2047 [2]) transfer > encoding is required to produce a standard compliant article. > > Problem: > MIME encoded words are ugly and complicate to handle. People want an > easier way to implement agents. Did you see server-side issues during your tests against INN as far as Unicode headers are concerned? (that is to say articles that were rejected or not properly processed) If we keep newsgroup names and message-IDs in US-ASCII, should something be modified to properly handle other fields or everything is already fine? That would be a first step. Regarding international newsgroup names in UTF-8, I believe they would need little adjustements and testing, especially for the encoding of the daily Usenet reports mailed to the newsmaster and HTML pages generated by innreport, and whether our various utilities accept international newsgroup names (controlchan, mod-active, perl-nocem, pullnews, Perl and Python hooks, send-uucp, imapfeed, inews, rnews, mailpost...). -- Julien ÉLIE « Vinum bonum laetificat cor hominis. »
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Fri, 08 May 2015 15:49
Date: Fri, 08 May 2015 15:49
101 lines
5256 bytes
5256 bytes
Julien ÉLIE wrote:
> Hi Michael,
>
> > Current situation:
> > RFC5536 [1] define the whole header as US-ASCII encoded. If an article
> > header should contain something else, MIME (RFC2047 [2]) transfer
> > encoding is required to produce a standard compliant article.
> >
> > Problem:
> > MIME encoded words are ugly and complicate to handle. People want an
> > easier way to implement agents.
>
> Did you see server-side issues during your tests against INN as far as
> Unicode headers are concerned? (that is to say articles that were
> rejected or not properly processed)
>
> If we keep newsgroup names and message-IDs in US-ASCII, should
> something be modified to properly handle other fields or everything is
> already fine?
> That would be a first step.
INN seem to work fine, even with the Unicode groups. Only the Message-ID
was rejected (by intent as you have written).
Posting to the different canonically equivalent groups obviously only
worked because no normalization was applied by any agent (against the
recommendation of RFC5198). But group names are for humans, so it would
be nonsense anyway when different groups look the same. Normalization
should be mandatory if such groupnames are allowed as Joshua stated in
<news:mign6b$cf7$1@dont-email.me>.
============================
The RFC4643 authentication problem was a bit subtle:
My NNTP driver normally do client to server authentication only after
the server request it via a 480 response. Because your server advertise
no POST capability before authentication, the driver rejected the POST
command before execution. Therefore it received no 480 response and
never tried to authenticate.
With my news provider Individual.NET this can't happen:
|
| [Using NNTP protocol driver]
| [=> Connect to news.individual.de:nntps]
| [Established encrypted connection using TLSv1.2 protocol with cipher suite DHE-RSA-AES256-GCM-SHA384]
| [<= Expect X509 certificate]
| Certificate:
| [...]
| [Server certificate verification successful]
| [<=] 200 The server welcomes [...]. Authorization required for reading and posting.
| [=>] CAPABILITIES
| [<=] 500 What?
| [Switch to NNTP V1 (RFC977) mode]
| [=>] GROUP comp.periphs.scsi
| [<=] 480 Authentication required.
| [=>] AUTHINFO USER ********
| [<=] 381 PASS required
| [=>] AUTHINFO PASS ********
| [<=] 281 Authentication accepted. [...]
| [=>] GROUP comp.periphs.scsi
| [<=] 211 39 257397 257435 comp.periphs.scsi
| [...]
Already the group selection is rejected here. The 480 is received and
the authentication is done. Because NNTP is used in V1 mode by the
driver here, the POST capability is always assumed to be present. Even
if only posting would require authentication, the 480 would be received
for POST and the authentication would work too.
Immediate authentication is implemented in the driver as an option too,
but is not the default, because RFC4643 specify:
|
| Servers SHOULD accept such unsolicited authentication requests.
^^^^^^
In other words: Only "auth after 480" is mandatory and a server is
allowed to reject an unsolicited authentication.
Maybe I should nevertheless switch the default setting for the NNTP
driver?
==========================
BTW: Some statistics for de.* last year from <news:de.admin.lists>:
|
| ---------------------------------------------------------
| Percent Count Type
| ---------------------------------------------------------
| 32.29 17014 individual.net
| 13.37 7043 news.albasani.net
| 10.81 5694 news.eternal-september.org
| 7.80 4108 postnews.google.com
| 7.66 4036 news.arcor.de.POSTED
| 3.14 1652 news.tota-refugium.de
| 2.95 1555 news.netfront.net
| 2.41 1269 news.online.de
| 2.15 1132 aioe.org
Individual runs INN 2.3: <http://news.individual.de/server.php>
Albasani runs INN 2.5.3 and Eternal september INN 2.6.
Looks like that 2014 still 1/3 of the articles in the german hierarchy
were still posted via NNTP V1. The backward compatibility come to mind
again.
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Fri, 08 May 2015 18:02
Date: Fri, 08 May 2015 18:02
48 lines
3597 bytes
3597 bytes
Hi Michael,
> The RFC4643 authentication problem was a bit subtle:
> My NNTP driver normally do client to server authentication only after
> the server request it via a 480 response. Because your server advertise
> no POST capability before authentication, the driver rejected the POST
> command before execution. Therefore it received no 480 response and
> never tried to authenticate.
Yep, this is how CAPABILITIES works. If the POST capability is not
available in the current state of the connection, then it is not advertised.
See Section 3.3.1 of RFC 3977:
The server MUST ensure that the capability list accurately reflects
the capabilities (including extensions) currently available. If a
capability is only available with the server in a certain state (for
example, only after authentication), the list MUST only include the
capability label when the server is in that state. Similarly, if
only some of the commands in an extension will be available, or if
the behaviour of the extension will change in some other manner,
according to the state of the server, this MUST be indicated by
different arguments in the capability line.
> Immediate authentication is implemented in the driver as an option too,
> but is not the default, because RFC4643 specify:
> |
> | Servers SHOULD accept such unsolicited authentication requests.
> ^^^^^^
> In other words: Only "auth after 480" is mandatory and a server is
> allowed to reject an unsolicited authentication.
> Maybe I should nevertheless switch the default setting for the NNTP
> driver?
I believe switching to an encrypted connection and then authenticating
should be done as soon as possible. Indeed, the available commands can
change after that (you could have POST, NEWNEWS...) as well as the
result of the LIST command.
--
Julien ÉLIE
« – Est-ce que tu peux remettre en état un druide qui a dérapé
sur une roche d'huile ?
– Euh ?!? C'est un accident peu fréquent, mais je pense pouvoir y
parvenir ! » (Astérix)
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Sat, 09 May 2015 14:21
Date: Sat, 09 May 2015 14:21
59 lines
4049 bytes
4049 bytes
Julien ÉLIE wrote: > Hi Michael, > > > The RFC4643 authentication problem was a bit subtle: > > My NNTP driver normally do client to server authentication only after > > the server request it via a 480 response. Because your server advertise > > no POST capability before authentication, the driver rejected the POST > > command before execution. Therefore it received no 480 response and > > never tried to authenticate. > > Yep, this is how CAPABILITIES works. If the POST capability is not > available in the current state of the connection, then it is not > advertised. > > See Section 3.3.1 of RFC 3977: > > The server MUST ensure that the capability list accurately reflects > the capabilities (including extensions) currently available. If a > capability is only available with the server in a certain state (for > example, only after authentication), the list MUST only include the > capability label when the server is in that state. Similarly, if > only some of the commands in an extension will be available, or if > the behaviour of the extension will change in some other manner, > according to the state of the server, this MUST be indicated by > different arguments in the capability line. IMHO a matching definition for the AUTHINFO capability in RFC4643 should read like: If the AUTHINFO capability is advertised, an authentication request MUST be accepted by the server at any time as long as it is in this state. But unfortunately it doesn't read like this. > > Immediate authentication is implemented in the driver as an option too, > > but is not the default, because RFC4643 specify: > > | > > | Servers SHOULD accept such unsolicited authentication requests. > > ^^^^^^ > > In other words: Only "auth after 480" is mandatory and a server is > > allowed to reject an unsolicited authentication. > > Maybe I should nevertheless switch the default setting for the NNTP > > driver? > > I believe switching to an encrypted connection and then authenticating > should be done as soon as possible. Indeed, the available commands can > change after that (you could have POST, NEWNEWS...) as well as the > result of the LIST command. As an example: Your server don't allow me to read this group anymore after authentication using the test account (but before/without it does). But I admit this should be a corner case. I will change the default of the NNTP driver to immediate authentication. -- [Wunsch nach geprüfter Sicherheit] Dein Wunsch ist längst erfüllt - es gibt genügend Buden die Dir gegen Münzeinwurf Deine IT-Sicherheit zertifizieren. Du musst natürlich fest daran glauben dass es hilft, sonst bringt es nichts. René Schuster in dcsm
Re: Unicode in USENET article headers
Author: Ralf Döblitz
Date: Sat, 09 May 2015 15:37
Date: Sat, 09 May 2015 15:37
23 lines
2604 bytes
2604 bytes
Russ Allbery <eagle@eyrie.org> wrote: > Michael Baeuerle <michael.baeuerle@stz-e.de> writes: > >> Potential problems: > > One of the big ones that you didn't mention, but which was the overriding > concern when this came up in the USEFOR working group, is that you pretty > thoroughly break compatibility with mail. This in turn causes practical > problems for merged mail and news clients, such as Thunderbird. I don't think unified clients are the problem, moderated newsgroups and submission handling with the proto-posting treated as a mail comes to mind and would break things even more thoroughly. So, unless UTF-8 is generally accepted in mail transport, it would be hard to allow this for news and not break the moderation process. Ralf -- "ceterum censeo systemd esse delendam" Ralf Döblitz * Schapenstraße 6 * 38104 Braunschweig * Germany Mit UTF-8 kann man gleichzeitig äöüßÄÖÜæœłø‱¼½¾¤¹²³¢€£¥¶§¬÷×±©®™¡¿ verwenden …
Re: Unicode in USENET article headers
Author: Ralf Döblitz
Date: Sat, 09 May 2015 16:01
Date: Sat, 09 May 2015 16:01
18 lines
2553 bytes
2553 bytes
Michael Baeuerle <michael.baeuerle@gmx.net> wrote: [...] > What I want to discuss in this thread: > Is there a possibility to change only the article format? In a way > that is compatible with mail (a subset of what is defined there) and > compatible with current USENET (at least to an acceptable degree) but > don't require a new or updated network for distribution. As long as you keep the headers ASCII-only, that should be possible. Otherwise, AFAICS, you would break compatibility with regard to transporting unapproved proto-articles for moderated newsgroups. Ralf -- "ceterum censeo systemd esse delendam" Ralf Döblitz * Schapenstraße 6 * 38104 Braunschweig * Germany Mit UTF-8 kann man gleichzeitig äöüßÄÖÜæœłø‱¼½¾¤¹²³¢€£¥¶§¬÷×±©®™¡¿ verwenden …
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Sun, 10 May 2015 08:55
Date: Sun, 10 May 2015 08:55
23 lines
2340 bytes
2340 bytes
Ralf Döblitz wrote: > Michael Baeuerle <michael.baeuerle@gmx.net> wrote: > [...] > > What I want to discuss in this thread: > > Is there a possibility to change only the article format? In a way > > that is compatible with mail (a subset of what is defined there) and > > compatible with current USENET (at least to an acceptable degree) but > > don't require a new or updated network for distribution. > > As long as you keep the headers ASCII-only, that should be possible. Then it will be a NOP, this thread is about the headers. > Otherwise, AFAICS, you would break compatibility with regard to > transporting unapproved proto-articles for moderated newsgroups. Looks like too many more things get broken (or maybe get broken depending on the used agents) and USENET should stay with RFC2047. -- [Wunsch nach geprüfter Sicherheit] Dein Wunsch ist längst erfüllt - es gibt genügend Buden die Dir gegen Münzeinwurf Deine IT-Sicherheit zertifizieren. Du musst natürlich fest daran glauben dass es hilft, sonst bringt es nichts. René Schuster in dcsm
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Mon, 11 May 2015 19:54
Date: Mon, 11 May 2015 19:54
48 lines
3793 bytes
3793 bytes
Hi Michael,
>> Otherwise, AFAICS, you would break compatibility with regard to
>> transporting unapproved proto-articles for moderated newsgroups.
>
> Looks like too many more things get broken (or maybe get broken
> depending on the used agents) and USENET should stay with RFC2047.
Too bad application/news-transmission is scarcely implemented in
software used by moderators!
We read in RFC 5537:
3.5.1. Forwarding Messages to a Moderator
An injecting agent MUST forward the proto-article to the moderator of
the leftmost moderated group listed in the Newsgroups header field,
customarily via email. There are two standard ways in which it may
do this:
1. The complete proto-article is encapsulated, header fields and
all, within the email. This SHOULD be done by creating an email
message with a Content-Type of application/news-transmission with
the usage parameter set to "moderate". The body SHOULD NOT
contain any content other than the message. This method has the
advantage of removing any possible conflict between Netnews and
email header fields and any changes to those fields during
transport through email.
2. The proto-article is sent as an email with the addition of any
header fields required for an email as defined in [RFC5322], and
possibly with the addition of other header fields conventional in
email, such as To and Received. The existing Message-ID header
field SHOULD be retained.
Although both of these methods have been used in the past and the
first has clear technical advantages, the second is in more common
use and many moderators are not prepared to deal with messages in the
first format. Accordingly, the first method SHOULD NOT be used
unless the moderator to which it is being forwarded is known to be
able to handle this method.
--
Julien ÉLIE
« L'homme a imaginé le cercle avant de savoir que la terre était
ronde. Ça prouve quand même une certaine faculté d'invention. »
(Jacques Sternberg)
Re: Unicode in USENET article headers
Author: Julien ÉLIE
Date: Mon, 11 May 2015 20:01
Date: Mon, 11 May 2015 20:01
31 lines
2774 bytes
2774 bytes
Hi Michael, >> I believe switching to an encrypted connection and then authenticating >> should be done as soon as possible. Indeed, the available commands can >> change after that (you could have POST, NEWNEWS...) as well as the >> result of the LIST command. > > As an example: Your server don't allow me to read this group anymore > after authentication using the test account (but before/without it > does). *heh*, maybe I should not configure that "test" user this way. I can of course change the list of allowed newsgroups to read. Reading your comment, it makes me think that a good practice could be worthwhile accompanying the AUTHINFO specification: after a successful authentication, a user SHOULD NOT loose facilities that he had access to when unauthenticated. > But I admit this should be a corner case. I will change the default of > the NNTP driver to immediate authentication. I believe it is a good thing to do, thanks. -- Julien ÉLIE « L'homme a imaginé le cercle avant de savoir que la terre était ronde. Ça prouve quand même une certaine faculté d'invention. » (Jacques Sternberg)
Re: Unicode in USENET article headers
Author: Michael Baeuerle
Date: Tue, 12 May 2015 08:37
Date: Tue, 12 May 2015 08:37
29 lines
2547 bytes
2547 bytes
Julien ÉLIE wrote: > Hi Michael, > > > > I believe switching to an encrypted connection and then authenticating > > > should be done as soon as possible. Indeed, the available commands can > > > change after that (you could have POST, NEWNEWS...) as well as the > > > result of the LIST command. > > > > As an example: Your server don't allow me to read this group anymore > > after authentication using the test account (but before/without it > > does). > > *heh*, maybe I should not configure that "test" user this way. I can > of course change the list of allowed newsgroups to read. > > Reading your comment, it makes me think that a good practice could be > worthwhile accompanying the AUTHINFO specification: after a successful > authentication, a user SHOULD NOT loose facilities that he had access > to when unauthenticated. Yes. IMHO it makes little sense to hide information that anybody else is allowed to access without authentication. > > But I admit this should be a corner case. I will change the default of > > the NNTP driver to immediate authentication. > > I believe it is a good thing to do, thanks. [X] Done
Re: Unicode in USENET article headers
Author: Anders Wegge Keller
Date: Tue, 12 May 2015 13:32
Date: Tue, 12 May 2015 13:32
18 lines
1616 bytes
1616 bytes
On Thu, 7 May 2015 14:43:13 +0000 (UTC) "Adam H. Kerman" <ahk@chinet.com> wrote: > None of this has anything to do with not writing in English. > > People tend to create problems where none exist. Jeg antager at google translate kan fortælle dig hvor tåbelig jeg anser en sproglig monoman som dig for at være. Vågn dog op, og indse at US-ASCII er en forældet standard, der kun er brugbar for en meget lille del af verdens befolkning. -- //Wegge
Re: Unicode in USENET article headers
Author: Adam H. Kerman
Date: Tue, 12 May 2015 14:09
Date: Tue, 12 May 2015 14:09
36 lines
2876 bytes
2876 bytes
Anders Wegge Keller <wegge@geostat.dk> wrote: >"Adam H. Kerman" <ahk@chinet.com> wrote: >>None of this has anything to do with not writing in English. >>People tend to create problems where none exist. > Jeg antager at google translate kan fortælle dig hvor tåbelig jeg anser >en sproglig monoman som dig for at være. > Vågn dog op, og indse at US-ASCII er en forældet standard, der kun >er brugbar for en meget lille del af verdens befolkning. Does "whoosh" translate into German? That would be an article body, not a header. To repeat the point I just made, certain people writing in English for an American audience somehow manage to use Unicode because they just don't wanna write with perfectly good ASCII characters, because they object to ambiguous punctuation marks (whose meaning is clear from context) or because they post through a Web gateway and certain non-printing characters are used to indicate soft line breaks and non-breaking spaces, characters which I believe should be unacceptable in headers if not article bodies as well. I think this causes problems where none should exist. Speaking of punctuation marks, how often have you seen people write with single close quote when they should have used apostrophe? It may be the same glyph in most fonts, but they are two distinct characters with two distinct code points. If you're going to be using punctuation marks ambiguously, then stick with ASCII ambiguous single close quote, which is also an apostrophe and an accent mark. Gah.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads