Thread View: news.software.nntp
121 messages
121 total messages
Page 1 of 3
Started by Steve Crook
Thu, 02 Feb 2012 10:17
Page 1 of 3 • 121 total messages
Mischief headers
Author: Steve Crook
Date: Thu, 02 Feb 2012 10:17
Date: Thu, 02 Feb 2012 10:17
24 lines
2023 bytes
2023 bytes
Hi all, I've noticed a few of posts in the last week that include false or broken headers. I think the causes are resolved in inn-2.6 but will rattle around while many servers run older versions. One instance is Message-IDs that include non-ASCII characters. Newer versions of INN just drop these but older ones don't. Once these Message-IDs get into the wild, they cause problems as References to them also become broken. This forces the reader to manually edit their References headers (if the software allows). The other issue I've seen is false Injection-Info/Injection-Date headers. These are intended to be created at the injecting server but inn < 2.6 doesn't prevent the poster from falsifying them. In particular, Injection-Info can be maliciously inserted, either to circumvent EMP filters (that use posting-host) or to forge the source. I appreciate that trying to fix versions of software that are already in use is impractical but operators of non-development versions of INN might want to create some simple nnrpd filters to prevent injection of messages with these characteristics. Steve
Re: Mischief headers
Author: Sir Gregory Hall, Esq.
Date: Thu, 02 Feb 2012 16:43
Date: Thu, 02 Feb 2012 16:43
34 lines
2494 bytes
2494 bytes
"Steve Crook" <steve@mixmin.net> wrote in message news:slrnjikokv.3g8.steve@news.mixmin.net... > Hi all, > > I've noticed a few of posts in the last week that include false or > broken headers. I think the causes are resolved in inn-2.6 but will > rattle around while many servers run older versions. > > One instance is Message-IDs that include non-ASCII characters. Newer > versions of INN just drop these but older ones don't. Once these > Message-IDs get into the wild, they cause problems as References to them > also become broken. This forces the reader to manually edit their > References headers (if the software allows). > > The other issue I've seen is false Injection-Info/Injection-Date > headers. These are intended to be created at the injecting server but > inn < 2.6 doesn't prevent the poster from falsifying them. In > particular, Injection-Info can be maliciously inserted, either to > circumvent EMP filters (that use posting-host) or to forge the source. > > I appreciate that trying to fix versions of software that are already in > use is impractical but operators of non-development versions of INN > might want to create some simple nnrpd filters to prevent injection of > messages with these characteristics. > > Steve LOL. Freaking net nanny. Why don't you get a life, d00d! -- Sir Gregory
Re: Mischief headers
Author: Julien ÉLIE
Date: Mon, 13 Feb 2012 13:05
Date: Mon, 13 Feb 2012 13:05
45 lines
3093 bytes
3093 bytes
Hi Steve, > I've noticed a few of posts in the last week that include false or > broken headers. I think the causes are resolved in inn-2.6 but will > rattle around while many servers run older versions. Are the problems still in 2.5.2? (And if they are, haven't they been fixed in 2.5.3rc1?) > One instance is Message-IDs that include non-ASCII characters. Newer > versions of INN just drop these but older ones don't. Once these > Message-IDs get into the wild, they cause problems as References to them > also become broken. Note that nnrpd still does not check the References: header at injection time. It only checks the Message-ID: header, as you mention. (INN 2.5.2 does that.) > The other issue I've seen is false Injection-Info/Injection-Date > headers. These are intended to be created at the injecting server but > inn < 2.6 doesn't prevent the poster from falsifying them. In > particular, Injection-Info can be maliciously inserted, either to > circumvent EMP filters (that use posting-host) or to forge the source. INN 2.5.2 does not allow the injection of an article already containing an Injection-Info: header field. Note that providing an Injection-Date: header field is allowed by the standard. INN 2.5.2 only checks that it has a valid syntax. > I appreciate that trying to fix versions of software that are already in > use is impractical but operators of non-development versions of INN > might want to create some simple nnrpd filters to prevent injection of > messages with these characteristics. Yep. -- Julien ÉLIE « – Que lui est-il arrivé ? Un choc moral ? – Oui, avec un menhir. » (Astérix)
--
Author: Jeff-Relf.Me
Date: Mon, 13 Feb 2012 19:35
Date: Mon, 13 Feb 2012 19:35
20 lines
1971 bytes
1971 bytes
You guys ( Julien•ÉLIE, Steve•Crook and Russ•Allbery ) have set a bad example. Popular INN servers ( e.g. "Eternal-September.ORG", Ray Banana ) drop posts ( from peers ) just because the header contains the « Content-Type: Text/HTML; charset=UTF-8 » line. While RFC 5537 says one must not inject a UTF·8 Message·ID, dropping a post with a UTF·8 Message·ID ( from peers, as INN does ) violates its core principle: Be liberal in what you accept, and conservative in what you send. In practice*, the « Content-Type: Text/HTML; charset=UTF-8 » line defines the charset of the header, including the Message·ID. [ *: Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ] Sans evidence, there's no reason to believe that 99 percent of us couldn't process a UTF·8 Message·ID as a simple stream of 8·bit bytes.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Julien ÉLIE
Date: Mon, 13 Feb 2012 20:17
Date: Mon, 13 Feb 2012 20:17
61 lines
3557 bytes
3557 bytes
Hi Jeff,
> Popular INN servers ( e.g. "Eternal-September.ORG", Ray Banana )
> drop posts ( from peers ) just because the header contains the
> « Content-Type: Text/HTML; charset=UTF-8 » line.
This is totally unrelated to the rejection of UTF-8 message-IDs.
> While RFC 5537 says one must not inject a UTF·8 Message·ID,
> dropping a post with a UTF·8 Message·ID ( from peers, as INN does )
> violates its core principle:
>
> Be liberal in what you accept, and conservative in what you send.
Do not forget to take into account that the NNTP protocol currently does
*not* allow the transit of articles whose message-ID is encoded in UTF-8.
RFC 3977:
6.3.2. IHAVE
Syntax
IHAVE message-id
message-id = "<" 1*248A-NOTGT ">"
; A- means based on US-ASCII, excluding controls and SP
A-NOTGT = %x21-3D / %x3F-7E ; exclude ">"
Same thing for streaming (CHECK and TAKETHIS commands), defined in RFC 4644.
> In practice*, the « Content-Type: Text/HTML; charset=UTF-8 » line
> defines the charset of the header, including the Message·ID.
How can it define the charset of the headers if it appears after the
beginning of the headers?
RFC 2045:
5. Content-Type Header Field
The purpose of the Content-Type field is to describe the data
contained in the body fully enough that the receiving user agent can
pick an appropriate agent or mechanism to present the data to the
user, or otherwise deal with the data in an appropriate manner. The
value in this field is called a media type.
> [ *: Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ]
In these mail/news readers, what happens if you declare an ISO-8859-1
charset (applying for the body) and use a UTF-8 message-ID?
--
Julien ÉLIE
« Mais pourquoi courent-ils si vite ? Pour gagner du temps ! Comme
le temps, c'est de l'argent… plus ils courent vite, plus ils en
gagnent. » (Raymond Devos)
--
Author: Jeff-Relf.Me
Date: Mon, 13 Feb 2012 22:10
Date: Mon, 13 Feb 2012 22:10
49 lines
3052 bytes
3052 bytes
<PRE>
You ( Julien•ÉLIE ) asked me ( Jeff Relf ):
« In these mail/news readers
[ Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ],
what happens if you declare an ISO-8859-1 charset
(applying for the body) and use a UTF-8 message-ID ? »
I don't know if they can do that, I doubt they can;
and I don't know if your server ( TrigoFacile.COM / Wanadoo.FR )
would allow it. [ does "Trigo Facile" mean "easy money" ? ]
The Message·ID would be a string of 8·bit bytes;
how it's displayed ( as UTF·8 or not ) is a trivial matter.
You asked me:
« How can it [ the "Content-Type: Text/HTML; charset=UTF-8" line ]
define the charset of the headers if it appears after the
beginning of the headers ? »
The "Content-Type: Text/HTML; charset=UTF-8" line appears
·in· ( not after ) the header of the post. The syntax is US·ASCII;
it's not just possible, it's a de facto standard*.
[ *: Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ]
UTF·8 is better than encoded words because it's human readable.
You told me:
« Do not forget to take into account that the NNTP protocol [ RFC 3977 ]
currently does *not* allow the transit of articles whose message-ID
is encoded in UTF-8. »
8·bit bytes are more unique than 7·bit bytes, so that was a bad idea;
and, in practice, only INN drops UTF·8 Message·IDs ( from peers ).
As I said:
Dropping a post with a UTF·8 Message·ID
( from peers, as ·only· INN does ) violates a core principle:
Be liberal in what you accept, and conservative in what you send.
In doing that, you guys ( Julien•ÉLIE, Steve•Crook and Russ•Allbery )
set a bad example.
For example, some popular INN servers
( e.g. "Eternal-September.ORG", Ray Banana )
drop posts ( from peers ) just because the header contains the
« Content-Type: Text/HTML; charset=UTF-8 » line.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Michael Moroney
Date: Tue, 14 Feb 2012 00:48
Date: Tue, 14 Feb 2012 00:48
24 lines
2631 bytes
2631 bytes
I noticed something. Since the true goal of this foolishness is (or should be) an ability to have non-ASCII text in the message-ID, how's this: I noticed that ASCII "?" and "=" are valid characters in Message-IDs. Why not simply make RFC 2047 applicable to Message-IDs and add a section to the relevant specs that state something like the following: When displaying a Message-ID as text to a user, if any sequence of octets meet the definition of an 'encoded-word' according to RFC-2047, that sequence SHOULD be decoded according to RFC-2047 before displaying it to the user. If any Message-ID is to contain characters outside of US-ASCII, they MUST be encoded according to RFC-2047. I suppose some rules may be necessary regarding the "@" required in Message-IDs (probably forbidding it from being encoded in "B" encoding but perhaps OK in "Q" encoding, so that a raw "@" always appears). This way, anyone who wants UTF-8 Message-IDs can have them, nothing old is broken, Message-ID: (and Reference:) headers are treated like every other header and 99.999% of people are unaffected. This should satisfy everyone except Jeff Relf, but nobody really cares what he wants and nothing other than breaking half the software out there will satisfy him anyway.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Pieter Zijlstra
Date: Tue, 14 Feb 2012 01:14
Date: Tue, 14 Feb 2012 01:14
20 lines
1921 bytes
1921 bytes
Jeff-Relf.Me wrote: > You told me: > > How can it [ the "Content-Type: Text/HTML; charset=UTF-8" line ] > > define the charset of the headers if it appears after the > > beginning of the headers ? > > The [snipped the arbitrary] header line appears ·in· ( not after ) > the header of the post. The syntax is US·ASCII; > it's not just possible, it's a de facto standard*. Bingo! I'm so glad you finally get this! ;-) -- Pieter "Simplicity is the ultimate sophistication." -- Leonardo da Vinci
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Pieter Zijlstra
Date: Tue, 14 Feb 2012 01:30
Date: Tue, 14 Feb 2012 01:30
28 lines
2397 bytes
2397 bytes
Jeff-Relf.Me wrote: > You ( Julien•ÉLIE ) asked me ( Jeff Relf ): > > « In these mail/news readers > [ Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ], > what happens if you declare an ISO-8859-1 charset > (applying for the body) and use a UTF-8 message-ID ? » > > I don't know if they can do that, I doubt they can; It wouldn't be too hard to do for you and me. Just use UTF-8 for the headers and than examine the content-type header to determine how the contents/body should be displayed ... ... oh err, OTOH that would probably won't work in the above mentioned "clients". > The Message·ID would be a string of 8·bit bytes; > how it's displayed ( as UTF·8 or not ) is a trivial matter. But that could mean that my perfectly Big-5 Message-ID appears all garbled in your newsreader. Do you really want that? -- Pieter Wood's Axiom: As soon as a still-to-be-finished computer task becomes a life-or-death situation, the power fails.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 01:30
Date: Tue, 14 Feb 2012 01:30
51 lines
4264 bytes
4264 bytes
moroney@world.std.spaamtrap.com (Michael Moroney) writes:
> I noticed that ASCII "?" and "=" are valid characters in Message-IDs.
> Why not simply make RFC 2047 applicable to Message-IDs and add a section
> to the relevant specs that state something like the following:
> When displaying a Message-ID as text to a user, if any sequence of
> octets meet the definition of an 'encoded-word' according to RFC-2047,
> that sequence SHOULD be decoded according to RFC-2047 before displaying
> it to the user.
> If any Message-ID is to contain characters outside of US-ASCII, they
> MUST be encoded according to RFC-2047.
This, like any other mechanism for introducing UTF-8, creates the problem
that there are multiple ways of encoding the same message ID and the
change is therefore (a) not backward-compatible with existing servers
(messages that should be treated as duplicates won't be) and (b) slow.
It's even more obvious with RFC-2047 encoding, since there are both Q and
B encodings for the same string. (It also has the additional problem that
it's incompatible with RFC 5322, but let's leave that aside for right
now.)
You can possibly handwave around the duplicates concern by saying "well,
while there are multiple ways to encode the same message ID, software will
just pass it through so you won't encounter problems in practice," but
this breaks a bunch of assumptions around how Unicode processing is
supposed to be done in general and therefore violates least surprise.
It's also a dubious assertion when it comes to References processing,
where a user agent is going to move the Message-ID from one place to
another and then do its own header processing, which we know from past
experience with character set issues in other protocols quite frequently
ends up redoing encodings.
What you'd have to do in order to take any of these approaches safely
without introducing normalization would be to redefine message IDs as a
raw octet sequence rather than as characters with an encoding. We did
seriously discuss that approach to Unicode in USEFOR back in the day
(principally with the Newsgroups header field, which has similar issues,
rather than with Message-ID), since it has the advantage of being fairly
close to how most servers treat the field right now. But it has the huge
disadvantages of completely severing the compatible relationship between
the netnews article format and email (since email is never ever going to
embrace the idea of raw octet sequences) and being unlike how Unicode is
handled in basically every other Internet protocol.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Pieter Zijlstra
Date: Tue, 14 Feb 2012 01:49
Date: Tue, 14 Feb 2012 01:49
41 lines
2627 bytes
2627 bytes
Jeff-Relf.Me wrote: > You told me: > « Do not forget to take into account that the NNTP protocol [RFC 3977] > currently does not allow the transit of articles whose message-ID > is encoded in UTF-8. » > > 8·bit bytes are more unique than 7·bit bytes, NULL is still NULL in either 7 or 8 bits. > so that was a bad idea; Not really, back then who needed more than 7 bits for communications (either for protocol or for that actual contents)? > and, in practice, only INN drops UTF·8 Message·IDs ( from peers ). Of course, these posts clearly do not conform with the current standard. > As I said: > > Dropping a post with a UTF·8 Message·ID > ( from peers, as ·only· INN does ) violates a core principle: > > Be liberal in what you accept, and conservative in what you send. Being liberal doesn't mean that whatever garbage you present to them is is going to be accepted, they should be liberal to a certain level but if there is chance that it will break down the system, they have every right to be defensive in what they accept. -- Pieter "Even if you're on the right track, you'll get run over if you just sit there." -- Will Rogers
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 01:53
Date: Tue, 14 Feb 2012 01:53
24 lines
2327 bytes
2327 bytes
Michael•Moroney, a UTF·8 Message·ID in an encoded word looks like: « =?UTF-8?Q?<aaaaa@bbbb.ccc>?= » ── truly invalid. In contrast, a stream of 8·bit bytes ·can· be a valid Message·ID, e.g.: « <⦿✚Φς@✼⌾◢◣⌽> » ── doesn't matter if it's displayed as UTF·8 or not. INN dropping posts (from peers) manifestly rejects a core principle: Be liberal in what you accept, and conservative in what you send. Julien•ÉLIE, Steve•Crook and Russ•Allbery are leading the way here. In dropping "Text/HTML" (from peers), Ray Banana took it up a notch. The « Content-Type: Text/HTML; charset=UTF-8 » line in the header of a post applies to the header... that's how it actually works in Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. Forte Agent can't display anything beyond its Western European font. Even the mighty slrn can't display double·wide fixed·with glyphs as found in the peerless "MS Mincho" font ( e.g. ♚♛♜♝♞♟ ). When it comes to HTML, Forte Agent knows almost nothing; because it's not a mainstream email client.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 02:20
Date: Tue, 14 Feb 2012 02:20
14 lines
1854 bytes
1854 bytes
You ( Russ•Allbery ) wrote: « email is never ever going to embrace the idea of raw octet sequences » I'm paid to send emails; daily, I converse with a diverse set of people. Hotmail, gMail, Yahoo and Outlook all understand UTF·8 ( outside encoded words ) well enough to display it correctly. gMail and Windows·Live·Mail apply the charset specified in the header, to the header; others ( Yahoo and Hotmail ) sniff·out the charset before displaying it ( tacking on L"\xFeFF\xFeFF" to the end helps ). No matter if certain apps display/handle UTF·8 Message·IDs properly or not, it's not reason enough to drop a post ( from a peer or fellow emailer ).
Re: Julien.ÉLIE, Steve.Crook and Russ.Allbery have set a bad example. ??
Author: D. Stussy
Date: Tue, 14 Feb 2012 02:32
Date: Tue, 14 Feb 2012 02:32
32 lines
2585 bytes
2585 bytes
"Jeff-Relf.Me" <x@x.Invalid> wrote in message news:Jeff-Relf.Me@2012_Feb.13^11.35.am... > You guys ( Julien.ÉLIE, Steve.Crook and Russ.Allbery ) > have set a bad example. > > Popular INN servers ( e.g. "Eternal-September.ORG", Ray Banana ) > drop posts ( from peers ) just because the header contains the > « Content-Type: Text/HTML; charset=UTF-8 » line. > > While RFC 5537 says one must not inject a UTF·8 Message·ID, > dropping a post with a UTF·8 Message·ID ( from peers, as INN does ) > violates its core principle: > > Be liberal in what you accept, and conservative in what you send. Otherwise known as: Accept spam but don't send it. ;-) > In practice*, the « Content-Type: Text/HTML; charset=UTF-8 » line > defines the charset of the header, including the Message·ID. > [ *: Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ] > > Sans evidence, there's no reason to believe that 99 percent of us > couldn't process a UTF·8 Message·ID as a simple stream of 8·bit bytes. Where does it say in any of the RFCs that message IDs can have non-ASCII characters...? The relaxing of the standard to allow UTF-8 applies to the body of the message and only to certain fields in header data (such as the subject, the non-mailbox part of from, etc...).
Re: Julien.ÉLIE, Steve.Crook and Russ.Allbery have set a bad example. ??
Author: Junior
Date: Tue, 14 Feb 2012 03:07
Date: Tue, 14 Feb 2012 03:07
20 lines
2252 bytes
2252 bytes
D. Stussy wrote: > "Jeff-Relf.Me" <x@x.Invalid> wrote in message > news:Jeff-Relf.Me@2012_Feb.13^11.35.am... >> Sans evidence, there's no reason to believe that 99 percent of us >> couldn't process a UTF·8 Message·ID as a simple stream of 8·bit bytes. > > Where does it say in any of the RFCs that message IDs can have non-ASCII > characters...? > > The relaxing of the standard to allow UTF-8 applies to the body of the > message and only to certain fields in header data (such as the subject, the > non-mailbox part of from, etc...). Does this "relaxing of the standard" mean that it's not necessary to encode the subject or from headers if they have 8 bit characters? I'm also wondering what might be the correct way to refer to these characters. UTF-8 doesn't really mean the text is using 8 bit characters; it means the set supports them. Am I thinking about this right? If so; could we call those characters Big-UTF-8? <g>
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 03:51
Date: Tue, 14 Feb 2012 03:51
12 lines
1620 bytes
1620 bytes
RFCs tell you how to make a pedantic post. They do ·not· tell you that Outlook ( which is widely used, even today ) doesn't encase high·bit bytes in "encoded words". No RFC will tell you how/why mainstream usenet/email apps ( e.g. Google Groups, gMail, Hotmail and Yahoo ) are able to properly display high·bit bytes in a header. Bad servers ·dictate· to me; I can't define what is or isn't spam. Only INN drops posts ( from peers ) with high·bit bytes.
Re: Bad servers ·dictate· to me; I can't define what is or isn't spam.
Author: Junior
Date: Tue, 14 Feb 2012 04:17
Date: Tue, 14 Feb 2012 04:17
35 lines
2894 bytes
2894 bytes
Jeff-Relf.Me wrote: > > RFCs tell you how to make a pedantic post. > > They do ·not· tell you that Outlook ( which is widely used, even today ) > doesn't encase high·bit bytes in "encoded words". > > No RFC will tell you how/why mainstream usenet/email apps > ( e.g. Google Groups, gMail, Hotmail and Yahoo ) > are able to properly display high·bit bytes in a header. > > Bad servers ·dictate· to me; I can't define what is or isn't spam. > Only INN drops posts ( from peers ) with high·bit bytes. Are you talking to me, Baby Relf? Are you talking to me? I don't recall mentioning spam, but... you seem rather touchy about the subject. Is there something you are not telling us? [tinu] Why doesn't Outlook... or why doesn't any Windows program conform to accepted standards is something many shake their heads about. My guess is, they feel there is no need to. They are so big and powerful that they need not write programs that get along with others; it's up to everyone else to conform to them. Just my opinion. As far as Google Groups and usenet is concerned; one thing I have not noticed, in any posts originating from their servers, are posts with "high-bit bytes' in any headers of a usenet post. How 'bout you, Baby Relf? Should INN drop posts with evil bits? My boneheaded thinking on this is that INN should not include code that can just as easily be handled with a filter system, like Cleanfeed for incoming stuff and local posting filters for outbound. But I have no idea WTF I am talking about.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 04:36
Date: Tue, 14 Feb 2012 04:36
14 lines
1821 bytes
1821 bytes
I would be talking to you ( Junior, Tioat's admin ), but I've no hope of convincing you to relax Tioat's filters. I'm better off using a server that ·already· works the way I want. Google Groups makes crappy, pedantic posts, as you noted; but it properly displays wild, semi·random posts from god knows where. Sadly, it uses INN, so it drops headers with UTF·8 Message·IDs and it requires an @·symbol in the "From" line ( instead of a home page ). INN servers are faster and more reliable, but they're net nannies; they dictate to me, as if I couldn't be anything other than a sad noob.
Re:  Jeff Relf has set a bad example.
Author: Michael Moroney
Date: Tue, 14 Feb 2012 04:36
Date: Tue, 14 Feb 2012 04:36
30 lines
2447 bytes
2447 bytes
Jeff Relf writes: > Michael▒Moroney, My name is not "Michael▒Moroney", it is "Michael Moroney" (without quotes). > a UTF·8 Message·ID in an encoded word looks like: > =?UTF-8?Q?<aaaaa@bbbb.ccc>? No it does not. You should know better than that, a Message-ID always starts with "<" and ends with ">". It would be of the form <=?UTF-8?Q?aaaaa@bbbb.ccc?=> Or <xxxxx=?UTF-8?Q?aaaaa?=yyyy@bbbb.bbb> or a bunch of other combos. Of course, it could be BIG5, KOI-8 or whatever as well. See this post for an example. > INN dropping posts (from peers) manifestly rejects a core principle: > Be liberal in what you accept, and conservative in what you send. So why aren't you following your own advice and being conservative with what you send? I've asked you a couple of times, you never answer. (actually, in these days of malicious hacking, "being liberal in what you accept" may not always be so wise. You have to be defensive enough so that what you accept doesn't harm you or anyone else)
Re:  Jeff Relf has set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 04:57
Date: Tue, 14 Feb 2012 04:57
37 lines
3367 bytes
3367 bytes
moroney@world.std.spaamtrap.com (Michael Moroney) writes:
> (actually, in these days of malicious hacking, "being liberal in what
> you accept" may not always be so wise. You have to be defensive enough
> so that what you accept doesn't harm you or anyone else)
That's the reason why there's a bunch of additional explanation around the
principle in RFC 5537:
As applied to Netnews, this primarily means that unwanted or non-
compliant articles SHOULD be rejected as early as possible, but once
they are in general circulation, relaying and serving agents may wish
to accept them where possible rather than lose information. Posting
agents and injecting agents SHOULD therefore be maximally strict in
their application of both this protocol and [RFC5536], and reading
agents SHOULD be robust in the presence of violations of the Netnews
article format where possible.
The reason why INN is even more conservative about Message-ID is because
Message-ID is one of the small handful of headers that's critical for the
netnews flood-fill algorithm to work properly and not create pathological
meltdown situations, such as endless article duplication. So INN is
particularly picky about what message IDs it's willing to deal with.
(There are other operational issues with bad message IDs, too, such as
that a bad message ID can result in error handling behavior from a peer
that is difficult to detect as a reject because it triggers a crash or an
unhelpful syntax error reponse instead of a reject of a particular message
ID. This can, and has with other message ID problems in the past, block
sending other articles to the peer because it looks like a temporary
network failure, which should trigger a retry of the same articles.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re:  Jeff Relf has set a bad example.
Author: Junior
Date: Tue, 14 Feb 2012 05:07
Date: Tue, 14 Feb 2012 05:07
34 lines
3174 bytes
3174 bytes
Russ Allbery wrote: > moroney@world.std.spaamtrap.com (Michael Moroney) writes: > >> (actually, in these days of malicious hacking, "being liberal in what >> you accept" may not always be so wise. You have to be defensive enough >> so that what you accept doesn't harm you or anyone else) > > That's the reason why there's a bunch of additional explanation around the > principle in RFC 5537: > > As applied to Netnews, this primarily means that unwanted or non- > compliant articles SHOULD be rejected as early as possible, but once > they are in general circulation, relaying and serving agents may wish > to accept them where possible rather than lose information. Posting > agents and injecting agents SHOULD therefore be maximally strict in > their application of both this protocol and [RFC5536], and reading > agents SHOULD be robust in the presence of violations of the Netnews > article format where possible. > > The reason why INN is even more conservative about Message-ID is because > Message-ID is one of the small handful of headers that's critical for the > netnews flood-fill algorithm to work properly and not create pathological > meltdown situations, such as endless article duplication. So INN is > particularly picky about what message IDs it's willing to deal with. > > (There are other operational issues with bad message IDs, too, such as > that a bad message ID can result in error handling behavior from a peer > that is difficult to detect as a reject because it triggers a crash or an > unhelpful syntax error reponse instead of a reject of a particular message > ID. This can, and has with other message ID problems in the past, block > sending other articles to the peer because it looks like a temporary > network failure, which should trigger a retry of the same articles.) Makes sense to me. Thanks, Russ.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 05:08
Date: Tue, 14 Feb 2012 05:08
24 lines
2222 bytes
2222 bytes
« <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> » is not a valid encoded word. Encoded words break on words; the <·symbol is part of the word. « <?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?> », without the =? ?= brackets, is most definately not an encoded word. Apparently, you're running something that strips out =·symbols. Besides, the unencoded version might be the intended Message·ID; e.g. your message·ID is « <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> », not « ❚@❚ ». Better servers aren't net·nannies, they let me decide what's what. So ( for them, not me ) the principle is: Be liberal in what you accept, and conservative in what you send. I'm a single person, not a server, I don't have to conform. Normally, I wouldn't care, I'd just use a server that ·already· works the way I want. But, because Goolge Groups uses INN ( and I don't want to exclude GG ), I'd like INN to allow high bit Message·IDs. It'll never happen of course, but I can state my desires.
Re:  Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 05:09
Date: Tue, 14 Feb 2012 05:09
21 lines
2767 bytes
2767 bytes
On 13/02/2012 11:57 PM, Russ Allbery wrote: > The reason why INN is even more conservative about Message-ID is because > Message-ID is one of the small handful of headers that's critical for the > netnews flood-fill algorithm to work properly and not create pathological > meltdown situations, such as endless article duplication. So INN is > particularly picky about what message IDs it's willing to deal with. It occurs to me that this, and similar, problems could always be solved by forcing every received message-ID into a specific format. (Ex: strip the high bit and change any control character to a ? character.) The key is for this transformation to be idempotent. Any article will end up with at most two copies this way (one with an initial, screwy message-ID and one with the normalized version) and only one on a server that does normalization. That server will also not cause problems via its outbound messages (as they will all have normalized message IDs). Crucially, messages with ASCII message IDs won't cause any new problems, and messages with high-bit message IDs that are injected to servers that normalize won't cause problems. As for References, treating that server-side as just octets shouldn't cause compatibility problems with mail, unlike Message-ID.
Re:  Jeff Relf has set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 05:22
Date: Tue, 14 Feb 2012 05:22
48 lines
4084 bytes
4084 bytes
Demented Traveler <detravel@simic.net> writes:
> On 13/02/2012 11:57 PM, Russ Allbery wrote:
>> The reason why INN is even more conservative about Message-ID is
>> because Message-ID is one of the small handful of headers that's
>> critical for the netnews flood-fill algorithm to work properly and not
>> create pathological meltdown situations, such as endless article
>> duplication. So INN is particularly picky about what message IDs it's
>> willing to deal with.
> It occurs to me that this, and similar, problems could always be solved
> by forcing every received message-ID into a specific format. (Ex: strip
> the high bit and change any control character to a ? character.) The key
> is for this transformation to be idempotent. Any article will end up
> with at most two copies this way (one with an initial, screwy message-ID
> and one with the normalized version) and only one on a server that does
> normalization.
This is a special case of the general idea that one can deal with
character set issues by normalizing before comparing. Your proposed
normalization function has the definite advantage of being fast (although
no canonicalization is as fast as not having to do it), but has the
disadvantage that it will smash multiple distinct message IDs to the same
value. Admittedly, it only does this with message IDs that are currently
invalid, so it's not a bad idea, but the failure mode with existing
servers that do octet comparisons is that a server using this algorithm
will pick one of multiple articles with message IDs mapping to the same
normalized form essentially at "random" and then reject all of the others.
That particular failure mode is one that historically we've gone to some
lengths to avoid, preferring to reject articles instead, because it can be
really confusing for users. It looks rather similar to what happens if
you have multiple articles circulating that have the same message ID but
different contents.
Also, note that your proposed normalization function still doesn't deal
with Unicode properly. Semantically identical message IDs could still end
up with different normalized forms. The sequences e with an acute accent
(U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map
to different normalized forms, but are semantically the same character
and, per the Unicode standard, are generally supposed to be treated as
equivalent.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re:  Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 05:28
Date: Tue, 14 Feb 2012 05:28
38 lines
3668 bytes
3668 bytes
On 14/02/2012 12:22 AM, Russ Allbery wrote: > This is a special case of the general idea that one can deal with > character set issues by normalizing before comparing. Your proposed > normalization function has the definite advantage of being fast (although > no canonicalization is as fast as not having to do it), but has the > disadvantage that it will smash multiple distinct message IDs to the same > value. Only ones that have a high bit set. > Admittedly, it only does this with message IDs that are currently > invalid, so it's not a bad idea, but the failure mode with existing > servers that do octet comparisons is that a server using this algorithm > will pick one of multiple articles with message IDs mapping to the same > normalized form essentially at "random" and then reject all of the others. If we had it all to do over again, we'd probably do well by designing the system to use the SHA-1 hash of the message body as the message-ID, encoded in some standard format, and follow up a hash collision with a byte-by-byte comparison of the full message to eliminate duplicates, using the message-ID just to speed up the duplicate test the majority of the time. Use of the hash as an actual message name would still mostly work (even accounting for the birthday paradox it would take many trillions of messages for a collision to become likely) and use of the hash + timestamp or hash + subject header would definitely work. > Also, note that your proposed normalization function still doesn't deal > with Unicode properly. Semantically identical message IDs could still end > up with different normalized forms. The sequences e with an acute accent > (U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map > to different normalized forms, but are semantically the same character > and, per the Unicode standard, are generally supposed to be treated as > equivalent. However, the message would have been injected with only one or the other of those sequences. If a message had one form and another had the other form, producing different normalized IDs, then they were separately-injected messages and are *supposed* to have distinct IDs!
Re:  Jeff Relf has set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 05:47
Date: Tue, 14 Feb 2012 05:47
70 lines
5535 bytes
5535 bytes
Demented Traveler <detravel@simic.net> writes:
> On 14/02/2012 12:22 AM, Russ Allbery wrote:
>> Also, note that your proposed normalization function still doesn't deal
>> with Unicode properly. Semantically identical message IDs could still
>> end up with different normalized forms. The sequences e with an acute
>> accent (U+00E9) and e followed by combining accent acute (U+0065
>> U+0301) will map to different normalized forms, but are semantically
>> the same character and, per the Unicode standard, are generally
>> supposed to be treated as equivalent.
> However, the message would have been injected with only one or the other
> of those sequences. If a message had one form and another had the other
> form, producing different normalized IDs, then they were
> separately-injected messages and are *supposed* to have distinct IDs!
You're assuming that no one normalized the Unicode somewhere in the
network and that the only time the octet sequence associated with the
message ID was generated was when the article was injected. This is a
good assumption to make with some use cases with current software that
understand Unicode at all, but it's not an assumption that you're
generally supposed to make with Unicode-aware software.
Consider, for example, the use case where a user re-enters a message ID to
try to find it (in a search by message ID interface in a news reader, for
example; many news readers have them and they can be quite useful). In
that case, you're almost guaranteed to get different normalization forms,
since you get whatever the local input method produces, which is going to
be whatever is convenient for it. So users search for a message ID and
can't find it even though, when looking at the message ID, it looks
exactly like what they typed.
Another example would be if a user cut and pastes a message ID into the
body of an article, to refer to another thread for example. It's totally
fair game for the article editor to use whatever Unicode form is the most
convenient for it, since Unicode says that all those representations of
the character are equivalent, so it may decide to normalize the article
into decomposed form (for example) because it's handy for some internal
reason. But now if you cut and paste that message ID, you don't find the
original article.
Another place where Unicode can shift between normalization forms is in
gatewaying scenarios, where articles may pass through Unicode-aware
software that isn't netnews-aware and hence isn't obsessive about
preserving the exact octet form of the message ID.
All this is why every IETF protocol that supports Unicode defines a
normalization protocol that must be used before comparing input. See, for
example, IDNA (RFC 3490), which is the standard for using Unicode in
domain names. It uses nameprep normalization, which in turn is a profile
of stringprep, which if you trace all the way through RFC 3491 and RFC
3454, you find requires using Unicode NFKC normalization (and then applies
a bunch of other rules and even bans a specific set of characters). NFKC
is the normalization form that says that you decompose characters in a way
to collapse all compatibility characters and then combine all accent marks
you can in order to create combined characters where possible. To do it
properly requires large tables of correct decomposition and normalization
forms for various characters (which you have to keep updating as new
versions of Unicode are released).
This stuff is hard. People who haven't done serious work on character
sets (including myself prior to the USEFOR discussion when I had to go off
and study the issues) almost always drastically underestimate how complex
character set issues are.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 05:49
Date: Tue, 14 Feb 2012 05:49
9 lines
1586 bytes
1586 bytes
Binary ( non·INN ) servers allow high·bits in the Message·ID; however, these servers are slow to find any Message·ID ── very slow. INN ( including Google Groups ) could allow high·bits in the Message·ID, I bet, without encountering problems. Let me decide if the post is worth it or not, please. Don't promote the "drop posts first, ask questions later" mentality.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 06:03
Date: Tue, 14 Feb 2012 06:03
6 lines
1412 bytes
1412 bytes
If your peers search 7 years deep ( as some do ), and you ·know· they reject high·bit message·IDs, don't ask for them... because it'd take forever and a day. Depending on the peer, don't ask for high·bit message·IDs.
Re:  Re: Better servers aren't netnannies, they let me decide what's what.
Author: Michael Moroney
Date: Tue, 14 Feb 2012 06:13
Date: Tue, 14 Feb 2012 06:13
31 lines
2828 bytes
2828 bytes
Jeff-Relf.Me <x@x.Invalid> writes: > <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> is not a valid encoded word. Sez who? You're making things up again. Nothing in RFC 2047 about that. Besides, if we go by your standards as what's out there, many news posters create subjects in strict ASCII until they encounter non-ASCII chars, then they switch into RFC-2047 encoding. > <?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?> without the =? ?= brackets, > is most definately not an encoded word. You're correct, Jeff, it's not. Did your br0ken newsreader fuck up and change the Message-ID on you? > Apparently, you're running something that strips out = symbols. That would be X.EXE, Jeff. Oh wait, you're the one running it, not I! You should know that my unusual, but correctly formatted Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> made it to Giggle Groups and aioe correctly, but your X.EXE apparently fucked up. I noticed it also fucked up the References: line (not fixed in this post), you added extra "<" and ">" characters, making it not a valid Message-ID. > Be liberal in what you accept, and conservative in what you send. > I'm a single person, not a server, I don't have to conform. That's what I thought. Antisocial personality disorder, or similar. The rules apply to everyone else except yourself!
Re:  Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 06:23
Date: Tue, 14 Feb 2012 06:23
115 lines
8151 bytes
8151 bytes
On 14/02/2012 12:47 AM, Russ Allbery wrote: > Demented Traveler<detravel@simic.net> writes: >> However, the message would have been injected with only one or the other >> of those sequences. If a message had one form and another had the other >> form, producing different normalized IDs, then they were >> separately-injected messages and are *supposed* to have distinct IDs! > > You're assuming that no one normalized the Unicode somewhere in the > network and that the only time the octet sequence associated with the > message ID was generated was when the article was injected. This is a > good assumption to make with some use cases with current software that > understand Unicode at all, but it's not an assumption that you're > generally supposed to make with Unicode-aware software. It's what would happen if we took the current situation, where servers either treat message-IDs as octet strings and don't change or interpret them at all or else reject some and treat the rest as opaque strings, and then added servers that flatten them into ASCII and don't otherwise manipulate them. > Consider, for example, the use case where a user re-enters a message ID to > try to find it (in a search by message ID interface in a news reader, for > example; many news readers have them and they can be quite useful). In > that case, you're almost guaranteed to get different normalization forms, > since you get whatever the local input method produces, which is going to > be whatever is convenient for it. So users search for a message ID and > can't find it even though, when looking at the message ID, it looks > exactly like what they typed. That's a UI/client-side issue rather than a network-meltdown-inducing issue, though. The problem we were trying to address was *solely* that servers might mangle the ID and spawn endlessly duplicating messages, or similar problems. But considering user searches for message IDs, where are they getting it in the first place? Probably by copy and paste from someplace (perhaps Google Groups). It's likely the already-normalized message ID and if it's not it'll be the original as injected, which will normalize to the same value. > Another example would be if a user cut and pastes a message ID into the > body of an article, to refer to another thread for example. It's totally > fair game for the article editor to use whatever Unicode form is the most > convenient for it, since Unicode says that all those representations of > the character are equivalent, so it may decide to normalize the article > into decomposed form (for example) because it's handy for some internal > reason. But now if you cut and paste that message ID, you don't find the > original article. That would be more of a problem. Perhaps there should be a normalization within Unicode. Again, though, it's a client-side issue that can't lead to a firehose of duplicate articles propagating among the servers. > Another place where Unicode can shift between normalization forms is in > gatewaying scenarios, where articles may pass through Unicode-aware > software that isn't netnews-aware and hence isn't obsessive about > preserving the exact octet form of the message ID. That seems less likely. Articles circulating among usenet servers would get the normalization outlined and nothing else. On the other hand, gatewaying outside of Usenet tends to happen at the edges: to web sites, or to email. When the door swings both ways it doesn't tend to do it automatically: an article is sent to someone as email, and if they reply by email that gets posted, say, but no article is converted to email, then back to netnews, and continues propagating. I expect, also, that even in the worst case (someplace has a full Usenet feed that takes articles, gateways them to something other than netnews, and sends them somewhere where they'll all be gatewayed back to Usenet, *and* instead of just copying them verbatim the whole way they do some kind of processing that changes Unicode characters among equivalent forms for some reason), there are finitely many equivalent Unicode strings for any given string. The maximum duplication may be larger than 1 or 2 copies per server but remains finite, averting your feared meltdown scenario. > All this is why every IETF protocol that supports Unicode defines a > normalization protocol that must be used before comparing input. And nothing stops this being done for netnews too. The only viable alternative may be to reject such message IDs outright and put up with Relf's whining. :) > This stuff is hard. People who haven't done serious work on character > sets (including myself prior to the USEFOR discussion when I had to go off > and study the issues) almost always drastically underestimate how complex > character set issues are. Blame the dumbass that decided to allow multiple equivalent ways to specify the same character in the first place. They should have probably not tried to be back-compatible with Latin-1 (just ASCII) and defined a character as an accent marker (0 for none, 1 for acute, 2 for grave, 3 for umlaut, 4 for the little ~ thing on Ns in Spanish, 5 for the little curlicue on Cs in French, and so forth) followed by a character code (itself wider than 8 bits, so the ten thousand symbols of Chinese for example could be accomodated). For convenient word alignment and to ensure plenty of room for expansion, one byte for accent and three for main glyph would probably have sufficed; that gives you 16,777,216 symbols (all the ideogrammic languages out there would still consume only a fraction of that, leaving plenty for when we encounter the Zurglebians and their million-character alphabet in 2147) and 256 different accents and valid combinations of accents (there probably aren't many of the latter). There'd only be one code for each symbol then, and 0 0 0 65 would still be unaccented capital A, so ASCII would still round-trip intact if you stripped the three high bytes. A standard compression scheme (patent-free LZSS?) could have been specified for making things more compact, and a standard way to convert to 7-bit forms (BinHex the compressed version?) could also have been specified. And a *single* such compression scheme and a *single* such conversion made canon. But again, it's a bit late for that now, just as it is to make message-IDs fully machine-generated by the injecting server hashing message bodies.
Re: ? Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 06:36
Date: Tue, 14 Feb 2012 06:36
52 lines
4821 bytes
4821 bytes
On 14/02/2012 1:23 AM, Demented Traveler wrote: > On 14/02/2012 12:47 AM, Russ Allbery wrote: >> Another place where Unicode can shift between normalization forms is in >> gatewaying scenarios, where articles may pass through Unicode-aware >> software that isn't netnews-aware and hence isn't obsessive about >> preserving the exact octet form of the message ID. > > That seems less likely. Articles circulating among usenet servers would > get the normalization outlined and nothing else. On the other hand, > gatewaying outside of Usenet tends to happen at the edges: to web sites, > or to email. When the door swings both ways it doesn't tend to do it > automatically: an article is sent to someone as email, and if they reply > by email that gets posted, say, but no article is converted to email, > then back to netnews, and continues propagating. Actually, on further thought, the hypothetical gateway would tend to only see already-normalized-to-ASCII message-IDs. If it got a raw 8-bit-dirty message-ID it would be through a chain of servers from the injecting one all the way to the gateway none of which applied my normalization idea -- which means the same thing would happen if the same article got injected *right now*. Rather than potentially *cause* the problem you outline above, my normalization proposal would reduce its likelihood in any given instance, since even one normalizing server on each path from injection site to gateway would prevent it. On the flip side, your main objections mostly involve circumstances where message-IDs are exposed to users rather than staying under the hood. The original objection to allowing 8-bit message-IDs was that it was too complicated to be justified to prettify something that was only rarely exposed to users. This means that although the more such message-IDs are exposed the stronger (some of) your arguments against a quick and dirty normalization scheme grow, also the stronger the arguments against simply rejecting such message-IDs grow. Regarding "full" normalization being complicated and requiring occasional updates: you mentioned that other protocols already require such normalization, and that one of those was DNS. Every usenet server must also use DNS, so if the normalization adopted for message IDs was the same one used with DNS you'd be guaranteed that every server *already* had the software code on it to do such normalization and *already* had to have the occasional updates. It would just be a matter of a) making the normalization scheme used for DNS be exposed as its own API (making it a Unix library that DNS software uses as a dependency instead of burying it inside the DNS software would suffice) and b) having NNTP server software use that API. This avoids duplication of effort and washes NNTP's hands of the whole update mess, as the need to keep DNS working is so severe that the normalization tables being used on all the servers will all be kept up to date already. The NNTP server's normalization will keep itself up to date by riding on the coattails of work that will be being done anyway on that net host, and which if it isn't done will cause all kinds of things to break on that net host anyway.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 06:40
Date: Tue, 14 Feb 2012 06:40
7 lines
1569 bytes
1569 bytes
Posting U+0065 U+0301 ( looks like U+00E9 ) will likely never happen; if it did happen, the guy who did it might lose, and I'm OK with that. Besides, Message·IDs with high·bits would (almost) never happen. I don't understand why or how speed might be an issue; perhaps 7 year·deep, binary servers are too slow, I don't know.
Re:  Jeff Relf has set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 07:07
Date: Tue, 14 Feb 2012 07:07
179 lines
11686 bytes
11686 bytes
Demented Traveler <detravel@simic.net> writes:
> On 14/02/2012 12:47 AM, Russ Allbery wrote:
>> You're assuming that no one normalized the Unicode somewhere in the
>> network and that the only time the octet sequence associated with the
>> message ID was generated was when the article was injected. This is a
>> good assumption to make with some use cases with current software that
>> understand Unicode at all, but it's not an assumption that you're
>> generally supposed to make with Unicode-aware software.
> It's what would happen if we took the current situation, where servers
> either treat message-IDs as octet strings and don't change or interpret
> them at all or else reject some and treat the rest as opaque strings,
> and then added servers that flatten them into ASCII and don't otherwise
> manipulate them.
Right. My point is that that *isn't* the only thing that a message ID is
used for on Usenet, so the set of use cases that you're considering is a
bit artificially limited. :)
If all you care about is server behavior, you can generally (not
completely, but generally) assume that what's currently happening is octet
comparison. There are some completely bizarre cases in INN where this
isn't the case, but they're not particularly important, and are really
long-standing bugs.
Past experience says that you shouldn't be too optimistic that everyone is
going to implement the new normalization properly and in the same way, but
the number of problems that would result is probably relatively low if
you're considering only servers. My guess is that most of your problems
are not going to be message ID uniqueness problems, but rather will be
with various strange failures, syntax errors, and other forms of lack of
cope from existing servers that don't like getting UTF-8 in NNTP commands.
This can be a significant problem, though; TAKETHIS and NNTP syntax errors
do not play well together, and we've had real implementation issues with
that in INN in the past.
>> Consider, for example, the use case where a user re-enters a message ID
>> to try to find it (in a search by message ID interface in a news
>> reader, for example; many news readers have them and they can be quite
>> useful). In that case, you're almost guaranteed to get different
>> normalization forms, since you get whatever the local input method
>> produces, which is going to be whatever is convenient for it. So users
>> search for a message ID and can't find it even though, when looking at
>> the message ID, it looks exactly like what they typed.
> That's a UI/client-side issue rather than a network-meltdown-inducing
> issue, though. The problem we were trying to address was *solely* that
> servers might mangle the ID and spawn endlessly duplicating messages, or
> similar problems.
Well, that may be the problem that *you're* trying to solve, but it's not
the problem that *I'm* trying to solve. :) I think a proper design for
allowing Unicode in places it's not currently allowed needs to look at all
the use cases. The network meltdown problems of course come most
immediately to mind, but all the interoperability issues are interesting.
I also take some minor issue with the idea that this is just a client-side
issue, since the problem with not doing normalization is precisely that
the client *can't* do the right thing. The client doesn't know what
normalization is used, so even if the client wants to do the right thing,
the client is helpless. All it could do is try *every possible
variation*, which as you can imagine can be quite large, and which is not
an operation that the normally available Unicode handling libraries offer.
> But considering user searches for message IDs, where are they getting it
> in the first place? Probably by copy and paste from someplace (perhaps
> Google Groups). It's likely the already-normalized message ID and if
> it's not it'll be the original as injected, which will normalize to the
> same value.
You're assuming that copy and paste preserves the Unicode normalization
form. Are you sure this is a valid assumption? I don't see any reason to
assume that your OS copy/paste, with a Unicode-aware OS (and that's nearly
all of them these days), is going to do an octet-by-octet copy of the raw
octets. Among other things, it's quite plausible that the OS or software
program will have changed normalization forms for display, to match what's
expected by the font in use for example, so what's displayed (and hence
copied) may not be the original form.
The invariant that you're relying on here is not actually invariant in
Unicode. Most people are used to the simple case of ISO 8859 charsets,
but those have about a tenth the complexity of Unicode.
> That would be more of a problem. Perhaps there should be a normalization
> within Unicode.
There are a whole bunch of normalizations within Unicode, and each
protocol and application gets to pick which ones they want to use. But
that doesn't happen automatically; the protocol has to say somewhere that
you have to normalize, and specify *when* you normalize.
> That seems less likely. Articles circulating among usenet servers would
> get the normalization outlined and nothing else. On the other hand,
> gatewaying outside of Usenet tends to happen at the edges: to web sites,
> or to email. When the door swings both ways it doesn't tend to do it
> automatically: an article is sent to someone as email, and if they reply
> by email that gets posted, say, but no article is converted to email,
> then back to netnews, and continues propagating.
You are, like most people who see gatewaying and think it's something
exotic and rare, neglecting newsgroup moderation. :) Which is by far the
most common gatewaying situation, and is bidirectional to boot. And
frequently passes through the most stunning array of ad hoc scripts,
bizarre mail clients, and weird file handling that you have ever seen in
your life. Moderators use an amazing variety of bailing wire and chewing
gum to run their groups.
> And nothing stops this being done for netnews too. The only viable
> alternative may be to reject such message IDs outright and put up with
> Relf's whining. :)
What gets me is that message IDs are just a dumb place to do this work.
They're much more critical than other parts of the message, and Unicode in
message IDs serves very little useful practical purpose. If we're going
to go to the work of allowing Unicode, let's do newsgroup names! They're
actually user-visible, they're actively buggy at the moment for our
non-English-speaking users who have words they want to use in newsgroup
names that don't collapse into ASCII, and the payoff is much more
satisfying. And they pose many of the same issues.
Message IDs are the last thing I'd try to change. Unlike every other
place one would look to add Unicode support, being ASCII-only isn't really
hurting message IDs in any appreciable way.
> Blame the dumbass that decided to allow multiple equivalent ways to
> specify the same character in the first place.
There are also a lot of politics involved in character sets. I followed
Unicode development for a long time, and I can assure you that the people
who worked out the compromises and details of the current standard aren't
dumbasses. They were operating under a bunch of constraints, though (and
there's some committee stupidity, as there is in any large cooperative
effort involving humans).
Making a standard that's easy to work with technically is important, but
making one that people would actually adopt and not ignore in favor of
continuing to use a blizzard of national character sets was also
important, and that's where a lot of the precombined characters come from.
(It would be simpler in a lot of ways, and elegant, if the only accent
marks were combining marks.) And they were also trying to solve a bunch
of other difficult problems at the same time (such as Arabic script, which
simply requires reasonable support for combining characters).
> They should have probably not tried to be back-compatible with Latin-1
> (just ASCII) and defined a character as an accent marker (0 for none, 1
> for acute, 2 for grave, 3 for umlaut, 4 for the little ~ thing on Ns in
> Spanish, 5 for the little curlicue on Cs in French, and so forth)
> followed by a character code (itself wider than 8 bits, so the ten
> thousand symbols of Chinese for example could be accomodated). For
> convenient word alignment and to ensure plenty of room for expansion,
> one byte for accent and three for main glyph would probably have
> sufficed; that gives you 16,777,216 symbols (all the ideogrammic
> languages out there would still consume only a fraction of that, leaving
> plenty for when we encounter the Zurglebians and their million-character
> alphabet in 2147) and 256 different accents and valid combinations of
> accents (there probably aren't many of the latter).
You need more than 256 different combining characters, because they're not
just used for accent marks such as in the languages that you're probably
thinking of. Take a look at Arabic; it's really rather interesting. The
comment about not many valid combinations of accents also makes me think
that you've never seen written Vietnamese. :)
> There'd only be one code for each symbol then, and 0 0 0 65 would still
> be unaccented capital A, so ASCII would still round-trip intact if you
> stripped the three high bytes.
UTF-32 is something akin to what you are describing, to mention, although
it doesn't divide up the character space in the way that you describe and
it of course still has combining marks. But you can't use UTF-32 with any
legacy protocol because all those 0 bytes look like nul characters and
break everything written with C string handling. Hence UTF-8.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: ? Jeff Relf has set a bad example.
Author: Russ Allbery
Date: Tue, 14 Feb 2012 07:23
Date: Tue, 14 Feb 2012 07:23
101 lines
7604 bytes
7604 bytes
Demented Traveler <detravel@simic.net> writes:
> Actually, on further thought, the hypothetical gateway would tend to
> only see already-normalized-to-ASCII message-IDs.
I hope you're not talking about normalizing it *in the article that you
pass on*, instead of just normalizing it internally for comparison! That
would open a whole different set of problems. There are good reasons why
one of the cardinal rules of netnews software is that you never, ever
change the article once it's been injected; you pass it on the way that
you got it (with a few well-documented exceptions for trace headers), or
you reject it.
You don't want to break that invariant. Down that path lies servers
adding advertisements to the bottom of every article that passes through
the server. You really do not want servers being "helpful" and munging
the article and then propagating their mistakes and bugs and bad decisions
on to everyone else who's unlucky enough to be downstream of them.
> On the flip side, your main objections mostly involve circumstances
> where message-IDs are exposed to users rather than staying under the
> hood. The original objection to allowing 8-bit message-IDs was that it
> was too complicated to be justified to prettify something that was only
> rarely exposed to users. This means that although the more such
> message-IDs are exposed the stronger (some of) your arguments against a
> quick and dirty normalization scheme grow, also the stronger the
> arguments against simply rejecting such message-IDs grow.
I think you're misstating the argument against Unicode message IDs, or
maybe I was overly simplistic in presenting it. It's not that one doesn't
prettify them because they're rarely exposed to users; it's that one
doesn't prettify them because users don't care about them except as opaque
strings. Save the work for something where Unicode means the difference
between spelling words properly or butchering them, or between letting
someone use their real name or forcing them to use an English name.
Making system-generated unique keys pretty is just a waste of effort.
> Regarding "full" normalization being complicated and requiring
> occasional updates: you mentioned that other protocols already require
> such normalization, and that one of those was DNS. Every usenet server
> must also use DNS, so if the normalization adopted for message IDs was
> the same one used with DNS you'd be guaranteed that every server
> *already* had the software code on it to do such normalization and
> *already* had to have the occasional updates.
No, the people who did IDNA were much brighter than that. :) They
understood the serious compatibility issues with adding Unicode to DNS, so
they took a very aggressive encoding stance. IDNA says that you convert
Unicode domain names to an encoded form basically as soon as you touch
them, and then everything you do with them uses the encoded form up until
the point at which you display them to a user. Then you decode them
*only* at the very end, and only for display. One of the huge advantages
of this approach is that only users who care about Unicode domain names,
and therefore have a reason to care to seek out updates, have to know
anything about the encoding; to everyone else who doesn't care about those
names, they just look like (kind of ugly) random domain names.
Every IDNA name that news server software runs into during normal
operation is already encoded and no news server software needs to know
anything about IDNA (except possibly if someone really wants to make
configuration files friendlier and allow admins to configure domain names
using the unencoded form, but so far as I know no one has yet bothered to
do that). All that news servers see are DNS names that look like
xn--bcher-kva.ch. So news servers don't generally have any specific IDNA
support. That's the sort of rollout strategy that you *have* to have; you
have to assume that only a tiny fraction of the network will know anything
about your new encoding or normalization or whatnot, and that the vast
majority of the network will continue working the way it does now.
Readers may need to know this should they want to display domain names in,
say, email addresses "properly," but I don't know of any readers yet with
that support. (Hm, maybe current development Gnus?) But they would
convert to encoded form immediately upon entry of the email address, and
convert back only at the last possible moment for display.
But indeed this is one of the reasons why we were looking at Punycode (the
IDNA encoding format) for newsgroup names as a route to Unicode. I still
think that's probably the best approach.
> It would just be a matter of a) making the normalization scheme used for
> DNS be exposed as its own API (making it a Unix library that DNS
> software uses as a dependency instead of burying it inside the DNS
> software would suffice) and b) having NNTP server software use that
> API. This avoids duplication of effort and washes NNTP's hands of the
> whole update mess, as the need to keep DNS working is so severe that the
> normalization tables being used on all the servers will all be kept up
> to date already. The NNTP server's normalization will keep itself up to
> date by riding on the coattails of work that will be being done anyway
> on that net host, and which if it isn't done will cause all kinds of
> things to break on that net host anyway.
Certainly if we wanted to pick an encoding format for newsgroup names or
for message IDs, we should use one that people are already using since
libraries are already available. Rolling our own would be a particularly
bad choice.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 07:33
Date: Tue, 14 Feb 2012 07:33
11 lines
1725 bytes
1725 bytes
<PRE> Google Groups has your post, Michael•Moroney, see: http://groups.google.com/group/news.software.readers/msg/40548ee899da8bf5 The =? ?= brackets were munged. When using Quoted·Printable, use == for =. Once again, you failed, and blamed me for it. I decide what's what, what's spam or not; not my email/usenet server. I'm not a server, I don't follow server rules, I don't decide for others.
--
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 08:10
Date: Tue, 14 Feb 2012 08:10
17 lines
1900 bytes
1900 bytes
Losing posts due to accents in Message·IDs doesn't bother me. They lose, I'm happy with that; I'll post working UTF·8 msg·IDs. I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide ) Apps should convert UTF·8 msg·IDs in NNTP commands to UTF·16; the apps can be fixed, or they could live with the errors. UTF·8 msg·IDs are a better place to begin, compared to newsgroup names, because they're less likely to be used. I'd use it, and (almost) no one else. If it slows things down, peer to peer, I'd like to know why, exactly. Moderators would ban what they can't handle. I'm fine with that, I don't post to moderated newsgroups.
Re:  Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 08:13
Date: Tue, 14 Feb 2012 08:13
232 lines
13786 bytes
13786 bytes
On 14/02/2012 2:07 AM, Russ Allbery wrote: > Demented Traveler<detravel@simic.net> writes: >> But considering user searches for message IDs, where are they getting it >> in the first place? Probably by copy and paste from someplace (perhaps >> Google Groups). It's likely the already-normalized message ID and if >> it's not it'll be the original as injected, which will normalize to the >> same value. > > You're assuming that copy and paste preserves the Unicode normalization > form. Are you sure this is a valid assumption? Copy and paste, properly implemented, should just be a bit-exact copy operation. > I don't see any reason to assume that your OS copy/paste, with a > Unicode-aware OS (and that's nearly all of them these days), is going to > do an octet-by-octet copy of the raw octets. Among other things, it's > quite plausible that the OS or software program will have changed > normalization forms for display, to match what's expected by the font in > use for example, so what's displayed (and hence copied) may not be the > original form. That would be very broken behavior. If I select a block of text and hit copy, I expect what's copied to be *the text as it exists in the document*, not something that's been massaged for display. Copy is supposed to act on the underlying document text, not on what happens to be on the screen. I certainly don't expect that if I select some text that is partly overlapped by the mouse pointer that a chunk of mouse pointer will get copied with it. :) Nor should anything else that has to do with the text's display, rather than the document content itself, influence it. If I set a Notepad to a 24-point font size and copy from it and paste into a Notepad set to 12-point, I expect 12-point text coming out, not 24-point. (If it's word processor text that has attributes and formatting, pasted to another word processor, then that's another matter. The point size is then a feature of the text as it exists in the application's document model, rather than a display setting that is separate from the document model. So it should be part of what's copied.) In MVC terminology, copy and paste should act on the model, not on the view, and copy in particular should get its data from the model, not the view. > You are, like most people who see gatewaying and think it's something > exotic and rare, neglecting newsgroup moderation. :) I didn't say it was "exotic and rare"; I said it occurs mainly at the edges, and mainly is not two-way-automated (i.e. an article gets injected and when it propagates to host X, it gets gatewayed to medium Y, say email, sent to host Z, and then gatewayed back to usenet without any human intervention). In particular, newsgroup moderation makes a round trip through email but with a manual click on an "approve" button by a moderator along the way. > frequently passes through the most stunning array of ad hoc scripts, > bizarre mail clients, and weird file handling that you have ever seen in > your life. Moderators use an amazing variety of bailing wire and chewing > gum to run their groups. Perhaps they shouldn't. I'd guess they're sticking to what they're used to rather than upgrading to more modern stuff that doesn't need to be jerry-rigged. The main complication I can foresee is if they've built an elaborate antispam filter along the way to autoreject the most obvious and commonplace junk. Even if they discarded that it wouldn't take them long to train a modern Bayesian spam filter on that, and if they used some mail services (notably including gmail) they could even take advantage of a pre-existing Bayesian filter that's kept up to date by a whole raft of mail users. >> And nothing stops this being done for netnews too. The only viable >> alternative may be to reject such message IDs outright and put up with >> Relf's whining. :) > > What gets me is that message IDs are just a dumb place to do this work. > They're much more critical than other parts of the message, and Unicode in > message IDs serves very little useful practical purpose. That's back to the not-user-exposed argument. Again, the less user-exposed message-IDs are, the less justification there is for anything more complicated than dropping problematic message-IDs, but also the less potential client-interaction issues (such as users pasting them into a search) matter. And do keep in mind that it would be mainly flattened-to-ASCII message-IDs that these users would be copying and pasting and that would be entering those ad-hoc, ancient, jerry-rigged moderation systems. Moderators could, in particular, just tack an initial step onto their scripts that flattened the message-ID. Whereas, making INN reject all non-ASCII message-IDs has *no effect whatsoever* on your moderation worries, since the article with the wonky message-ID will go directly to the moderator's possibly-broken scripts without ever passing through INN. It will cause all the trouble it could cause there *before* potentially being injected to or passing through an INN server that could prevent it using *either* normalization *or* blocking! Every moderator that might see an incoming message with a non-ASCII message-ID already has to do something (and each separately from the other, it seems, as well as separately from news servers) about it, such as auto-reject or normalize in some manner. > If we're going to go to the work of allowing Unicode, let's do > newsgroup names! They're actually user-visible, they're actively > buggy at the moment for our non-English-speaking users who have words > they want to use in newsgroup names that don't collapse into ASCII, > and the payoff is much more satisfying. And they pose many of the > same issues. No objection there. > Message IDs are the last thing I'd try to change. Unlike every other > place one would look to add Unicode support, being ASCII-only isn't really > hurting message IDs in any appreciable way. I was, actually, mostly playing the devil's advocate. I'm all for blocking Relf's malformed-by-current-standards posts at the source. :) >> Blame the dumbass that decided to allow multiple equivalent ways to >> specify the same character in the first place. > > There are also a lot of politics involved in character sets. "Politics" is a synonym for "dumbassery", so my point stands. ;) > I followed Unicode development for a long time, and I can assure you that > the people who worked out the compromises and details of the current > standard aren't dumbasses. That's the funny thing about design-by-committee: you can get dumbassery out even if none of the committee members, taken alone, is a dumbass. And you usually do. ;) > They were operating under a bunch of constraints, though Of which the worst two were, no doubt, trying to be back-compatible with ISO 8859-1 and maybe other extended charsets and not just ASCII, plus space constraints (so just giving every combination of base glyph + accent might quickly run out of room). Without the latter, just having every distinct glyph have its own code would be simple and work, and without the former having accents specified by a separate code would work. > (and there's some committee stupidity, as there is in any large cooperative > effort involving humans). This is why a project with a clearly-in-charge BD (like Linus Torvalds and the Linux kernel, Rich Hickey and Clojure, etc.) is generally superior to either a free-for-all or DBC. > (It would be simpler in a lot of ways, and elegant, if the only accent > marks were combining marks.) I believe I already said that. Having the whole "combining marks" complication missing also would have been, but I guess they were worried about the charset growing too big. > And they were also trying to solve a bunch > of other difficult problems at the same time (such as Arabic script, which > simply requires reasonable support for combining characters). One clever solution if you had the codespace for a huge charset would have been to structure the Arabic section in such a manner that you could treat the code point as an X-bit record with fields and read off the combining characters that way. That would give the desirable property "each distinct glyph has exactly one code" and still allow shortcuts in fonts and display code based on decomposing points in that part of the codespace into those fields and using the separate field values to find and combine the appropriate graphic pieces to assemble the displayed glyph. If we had it to do over again ... But we don't. > You need more than 256 different combining characters, because they're not > just used for accent marks such as in the languages that you're probably > thinking of. Take a look at Arabic; it's really rather interesting. The > comment about not many valid combinations of accents also makes me think > that you've never seen written Vietnamese. :) My focus was on European languages, yes. But I also said "accents" specifically, and not other decomposable glyphs. Korean has a consonant-vowel pair encoded by combining two symbols within one character's worth of space, as I recall. Something like that might be best represented with a single character for each component, and smart display software that knows to combine a Korean consonant symbol and following Korean vowel symbol into a single glyph according to whatever rules. Note the general pattern: if I'd designed this, I'd have made a clear distinction between bit-pattern representation and display representation and expected fairly smart font rendering engines to do the job. The combining character mechanism seems to do this anyway. But the lack of a single canonical representation for a particular combination is a problem. One I think was avoidable, back when this was still being designed. Another compromise they could have used. The main charsets they wanted to stay back-compatible with were the European accented ones, which have just a smattering of specific accented glyphs rather than an explosion of combination characters. So, they could have had all European character codes been integrated (no combining characters) but used combining characters (with no equivalent integrated-version characters) in other language spaces, including Arabic, Korean, and Vietnamese. Why they decided to throw in European-accent combining characters as well is anybody's guess. Maybe someone thought it was less elegant to lack them but use combining characters for similar features in other languages. I would think it's less elegant still to have multiple equivalent representations of single strings, and encourage things other than bit-exact copying when moving data around as well as more complicated than "are they bit-identical?" case-sensitive equality tests. (Case-insensitive would always have been a bugabear, but is unimportant for things like newsgroup names and message-IDs.) > UTF-32 is something akin to what you are describing, to mention, although > it doesn't divide up the character space in the way that you describe and > it of course still has combining marks. Yes, I know. > But you can't use UTF-32 with any > legacy protocol because all those 0 bytes look like nul characters and > break everything written with C string handling. Hence UTF-8. We'd probably have still had something like UTF-8. But UTF-8 would have kept the "one representation, one string" correspondence with a "smarter UTF-32" backing it. (Well, there's the UTF-8 and the UTF-32 bit-patterns, but if you assume the input is always UTF-8 there's only one representation. Or you can just unpack to UTF-32 in-memory before any comparisons and if UTF-32 has the single-representation property then that also works on the non-legacy systems. If the legacy systems have to compare, then equal UTF-32 byte sequences must also produce equal UTF-8 byte sequences.)
Re: Julien ÉLIE, Steve Crook and Russ Allbery have set a bad example.
Author: Steve Crook
Date: Tue, 14 Feb 2012 09:23
Date: Tue, 14 Feb 2012 09:23
20 lines
2428 bytes
2428 bytes
On Mon, 13 Feb 2012 17:53:59 -0800 (Seattle), Jeff-Relf.Me wrote in Message-Id: <Jeff-Relf.Me@2012_Feb.13^5.53.pm>: > Julien•ÉLIE, Steve•Crook and Russ•Allbery are leading the way here. > In dropping "Text/HTML" (from peers), Ray Banana took it up a notch. What's that got to do with UTF-8 Message-ID's? > The « Content-Type: Text/HTML; charset=UTF-8 » line in the header > of a post applies to the header... that's how it actually works in > Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. > Forte Agent can't display anything beyond its Western European font. > Even the mighty slrn can't display double·wide fixed·with glyphs > as found in the peerless "MS Mincho" font ( e.g. ♚♛♜♝♞♟ ). > > When it comes to HTML, Forte Agent knows almost nothing; > because it's not a mainstream email client. All the above demonstrates to me that whacky things like UTF-8 Message-IDs and HTML content produces unexpected results across the spectrum of readers. And your list only describes the behaviour of a very small subset of things that might be reading Usenet.
Re: INN servers are faster and more reliable, but they're net nannies.
Author: Steve Crook
Date: Tue, 14 Feb 2012 10:45
Date: Tue, 14 Feb 2012 10:45
16 lines
2231 bytes
2231 bytes
On Mon, 13 Feb 2012 20:36:26 -0800 (Seattle), Jeff-Relf.Me wrote in Message-Id: <Jeff-Relf.Me@2012_Feb.13^8.36.pm>: > I'm better off using a server that ·already· works the way I want. Which is a great feature of Usenet. You moan about how other servers choose to filter their feed but you have the choice to use one that does exactly what you want. > INN servers are faster and more reliable, but they're net nannies; > they dictate to me, as if I couldn't be anything other than a sad noob. Usenet is about communication through the written word. "Noobs" shouldn't be used to describe the thousands of people who care about using it to communicate rather than exploring the limitations of how it works. In the past, with the September influx, that term was applied to those who didn't understand quoting, Subject continuity and other aspects of etiquette.
Re: INN servers are faster and more reliable, but they're net nannies. ??
Author: Sn!pe
Date: Tue, 14 Feb 2012 11:42
Date: Tue, 14 Feb 2012 11:42
23 lines
3096 bytes
3096 bytes
Steve Crook <steve@mixmin.net> wrote: > On Mon, 13 Feb 2012 20:36:26 -0800 (Seattle), Jeff-Relf.Me wrote in > Message-Id: <Jeff-Relf.Me@2012_Feb.13^8.36.pm>: > [...] > > > INN servers are faster and more reliable, but they're net nannies; > > they dictate to me, as if I couldn't be anything other than a sad noob. > > Usenet is about communication through the written word. "Noobs" > shouldn't be used to describe the thousands of people who care about > using it to communicate rather than exploring the limitations of how it > works. In the past, with the September influx, that term was applied to > those who didn't understand quoting, Subject continuity and other aspects > of etiquette. That's the best laugh so far today, thanks, Steve. -- ^Ï^. Sn!pe <snipe@notforspam.fsnet.co.uk> My pet rock Gordon just is.
Re: ? Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 13:23
Date: Tue, 14 Feb 2012 13:23
77 lines
5327 bytes
5327 bytes
On 14/02/2012 2:23 AM, Russ Allbery wrote: > You don't want to break that invariant. Down that path lies servers > adding advertisements to the bottom of every article that passes through > the server. That's a classic example of the slippery slope fallacy. > You really do not want servers being "helpful" and munging > the article and then propagating their mistakes and bugs and bad decisions > on to everyone else who's unlucky enough to be downstream of them. So is that. > I think you're misstating the argument against Unicode message IDs, I most certainly am not. I'm repeating almost verbatim what I read earlier in the thread. If someone misstated anything, then, it was not me. > users don't care about them except as opaque strings. Apparently, at least one or two users do. :) > Making system-generated unique keys pretty is just a waste of effort. But they're not. Apparently, some people even personalize theirs. If they had been generated by the injecting server using some kind of hash function from the outset, of course, then things would have been different. > No, the people who did IDNA were much brighter than that. :) They > understood the serious compatibility issues with adding Unicode to DNS, so > they took a very aggressive encoding stance. IDNA says that you convert > Unicode domain names to an encoded form basically as soon as you touch > them, and then everything you do with them uses the encoded form up until > the point at which you display them to a user. Then you decode them > *only* at the very end, and only for display. This is similar to what I was suggesting for the message-IDs: in particular, that transformations for the purpose of display shouldn't impact the under-the-hood representation passed from server to server. > One of the huge advantages > of this approach is that only users who care about Unicode domain names, > and therefore have a reason to care to seek out updates, have to know > anything about the encoding; to everyone else who doesn't care about those > names, they just look like (kind of ugly) random domain names. Seems like a perfect approach for message-IDs, and, for that matter, newsgroup names as well. Well, clients need a well-defined path for round-tripping through copy and paste. If the user copies an IDNA-like-transformed display value and pastes it elsewhere it should undergo the inverse mapping. (Multiple representations shouldn't be a problem if the IDNAified version has a single representation for each semantically-different string; the one generated for display can be arbitrary, and the whole equivalence class can collapse back into the one IDNAified representation on paste.) Of course, that assumes a broken-ish copy and paste that doesn't copy the under-the-hood value. That might be justified though so that if it's copied from the newsreader and then pasted into a text editor or whatever it comes out non-uglified and human-readable. Given the above round-tripping properties. > But indeed this is one of the reasons why we were looking at Punycode (the > IDNA encoding format) for newsgroup names as a route to Unicode. I still > think that's probably the best approach. Agreed. > Certainly if we wanted to pick an encoding format for newsgroup names or > for message IDs, we should use one that people are already using since > libraries are already available. Rolling our own would be a particularly > bad choice. Hence why I suggested leveraging existing code for encoding/normalization, and pointed out one instance of such code that should already exist on every plausible target configuration.
Re: I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide )
Author: Demented Traveler
Date: Tue, 14 Feb 2012 13:30
Date: Tue, 14 Feb 2012 13:30
8 lines
1815 bytes
1815 bytes
On 14/02/2012 3:10 AM, Jeff-Relf.Me wrote: > > Losing posts due to accents in Message·IDs doesn't bother me. > They lose, I'm happy with that; I'll post working UTF·8 msg·IDs. > I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide ) ☢ is right, if we're to believe the various news admins' claims here about the effects your message-IDs are having on the network.
Re: Julien•ÉLIE, Steve•Crook and Russ•Allbery have set a bad example.
Author: Julien ÉLIE
Date: Tue, 14 Feb 2012 13:42
Date: Tue, 14 Feb 2012 13:42
26 lines
2436 bytes
2436 bytes
Hi Jeff-Relf, > « In these mail/news readers > [ Google Groups, Thunderbird, Outlook, Windows Live Mail, etc. ], > what happens if you declare an ISO-8859-1 charset > (applying for the body) and use a UTF-8 message-ID ? » > > I don't know if they can do that, I doubt they can; > and I don't know if your server ( TrigoFacile.COM / Wanadoo.FR ) > would allow it. My server rejects UTF-8 message-IDs. You could try with other headers, for instance a From: header field with an internationalized e-mail address in UTF-8, though the charset (in the Content-Type: header field) is set to ISO-8859-1. > [ does "Trigo Facile" mean "easy money" ? ] No; it means "easy trigonometry". -- Julien ÉLIE « Don't marry for money; you can borrow it cheaper. » (proverbe écossais)
Re: I like the look. ??????????? ( MS Mincho, fixed width, double wide ) ??
Author: G. Morgan
Date: Tue, 14 Feb 2012 13:47
Date: Tue, 14 Feb 2012 13:47
17 lines
2576 bytes
2576 bytes
Demented Traveler wrote: >On 14/02/2012 3:10 AM, Jeff-Relf.Me wrote: >> >> Losing posts due to accents in Message·IDs doesn't bother me. >> They lose, I'm happy with that; I'll post working UTF·8 msg·IDs. >> I like the look. ??????????? ( MS Mincho, fixed width, double wide ) > >? is right, if we're to believe the various news admins' claims here >about the effects your message-IDs are having on the network. I'm not seeing his posts from E-S, and he's not filtered. All I see is lots of question marks. Get it together Jeff R. use 7-bit please.
Re: ? Jeff Relf has set a bad example.
Author: Julien ÉLIE
Date: Tue, 14 Feb 2012 13:58
Date: Tue, 14 Feb 2012 13:58
23 lines
2363 bytes
2363 bytes
Hi Demented Traveler, > use the SHA-1 hash of the message body as the message-ID [...] > and use of the > hash + timestamp or hash + subject header would definitely work. Beware of the message whose subject and body is "test" :-) Or multiposting at the same second to different newsgroups (instead of crossposting). Besides, two different users can post a "test" message at different times, but using the same timestamp because the two servers do not have the right date! My two cents ;-) -- Julien ÉLIE « Don't marry for money; you can borrow it cheaper. » (proverbe écossais)
Re: ? Jeff Relf has set a bad example.
Author: Demented Traveler
Date: Tue, 14 Feb 2012 14:00
Date: Tue, 14 Feb 2012 14:00
21 lines
2331 bytes
2331 bytes
On 14/02/2012 8:58 AM, Julien ÉLIE wrote: > Hi Demented Traveler, > >> use the SHA-1 hash of the message body as the message-ID > [...] >> and use of the >> hash + timestamp or hash + subject header would definitely work. > > Beware of the message whose subject and body is "test" :-) Datestamp then. > Or multiposting at the same second to different newsgroups (instead of > crossposting). Because all but one of a multipost being dropped would be *such* a tragedy. But if it really matters to you, the hash can be for the entire thing injected, including the proto-headers. Since that often includes a message-ID and always includes the subject, that would get rid of most collisions. The hash can be salted with UTC time for extra bonus points.
Re:  Jeff Relf has set a bad example.
Author: Steve Crook
Date: Tue, 14 Feb 2012 14:37
Date: Tue, 14 Feb 2012 14:37
18 lines
2145 bytes
2145 bytes
[Dropped news.software.readers] On Tue, 14 Feb 2012 00:28:24 -0500, Demented Traveler wrote in Message-Id: <jhcrdq$ube$1@speranza.aioe.org>: > If we had it all to do over again, we'd probably do well by designing > the system to use the SHA-1 hash of the message body as the message-ID, I'm inclined to agree but it would need more encoded info than just a hash. Currently Message-ID's (as References) provide the only means to score on thread content. For example, I can score on messages replying directly to me and/or to sub-threads where I've contributed. I find this a valuable capability. As a quick stab, something like this feels good: Message-ID: <SHA1(newsgroup+injection-date+payload)-user@domain> I appreciate this does nothing to solve UTF-8 domain names. :)
Re: ? Jeff Relf has set a bad example.
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 15:43
Date: Tue, 14 Feb 2012 15:43
18 lines
2636 bytes
2636 bytes
In <jhcvds$65k$1@speranza.aioe.org>, on 02/14/2012 at 01:36 AM, Demented Traveler <detravel@simic.net> said: >Regarding "full" normalization being complicated and requiring >occasional updates: I would expect any internationized update of Usenet to be based on RFC 5198, Unicode Format for Network Interchange, and RFC 5335, Internationalized Email Headers. -- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel> Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org
Re:  Jeff Relf has set a bad example.
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:00
Date: Tue, 14 Feb 2012 16:00
16 lines
2612 bytes
2612 bytes
In <87zkcllwpq.fsf@windlord.stanford.edu>, on 02/13/2012 at 11:07 PM, Russ Allbery <rra@stanford.edu> said: >existing servers that don't like getting UTF-8 in NNTP commands. Wouldn't they give a 501? I'd expect a new capability, comparable to the UTF8SMTP Extension in RFC 5336, for non-ASCII message ids. -- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel> Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org
Re:  Jeff Relf has set a bad example.
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:10
Date: Tue, 14 Feb 2012 16:10
22 lines
3219 bytes
3219 bytes
In <jhd53e$hv8$1@speranza.aioe.org>, on 02/14/2012 at 03:13 AM, Demented Traveler <detravel@simic.net> said: >(so just giving every combination of base glyph + >accent might quickly run out of room). Especially if multiple composing characters can be concurrently applied to the same base character, e.e., vowel and trop in Hebrew. >Without the latter, just having every distinct glyph have its own >code would be simple and work, Only for languages in which the decorations are mutually exclusive. -- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel> Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org
Re: Julien ÉLIE, Steve Crook and Russ Allbery have set a bad example.
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:18
Date: Tue, 14 Feb 2012 16:18
20 lines
2860 bytes
2860 bytes
In <slrnjjk9vl.i0u.steve@news.mixmin.net>, on 02/14/2012 at 09:23 AM, Steve Crook <steve@mixmin.net> said: >All the above demonstrates to me that whacky things like UTF-8 >Message-IDs and HTML content produces unexpected results across the >spectrum of readers. No, It also demonstrates that he believes that RFC 2045, RFC 2047 and RFC 5322 are irrelevant. "The « Content-Type: Text/HTML; charset=UTF-8 » line in the header of a post applies to the header" is totally wrong. -- Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel> Unsolicited bulk E-mail subject to legal action. I reserve the right to publicly post or ridicule any abusive E-mail. Reply to domain Patriot dot net user shmuel+news to contact me. Do not reply to spamtrap@library.lspace.org
Page 1 of 3 • 121 total messages
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