Article View: news.software.nntp
Article #86473Re: Non-standard 'From' fields
From: Adam H. Kerman
Date: Sat, 28 Mar 2015 16:47
Date: Sat, 28 Mar 2015 16:47
121 lines
7054 bytes
7054 bytes
my name) @gmx.net (my mailbox provider) (Not my full name <michael.baeuerle> wrote: >Adam H. Kerman wrote: >>Russ Allbery wrote: >>>Michael Baeuerle writes: >>>>The current standard for USENET articles is RFC5536 [2] and specify it >>>>this way: >>>>| >>>>| from = "From:" SP mailbox-list CRLF >>>>with 'mailbox-list' as defined in RFC5322 (the current evolution of >>>>RFC822). So the special syntax with the redefined comment is no longer >>>>allowed for USENET articles. A RFC5536 compliant parser discards the >>>>comment with the "full name". >>>Not allowed is a little strong in the sense that it's a syntactically >>>valid from header in RFC5536. It's just that it loses information, since >>>the comment is just a comment. >>There's section 3.2.2 in RFC 5322 on how to structure a comment. The >>comment would be retained. Where's the information loss? >>If it is a name, it's readable by the reader of the Usenet article. We're >>not trying to capture information for a database (unless we're an >>address harvester). >The content of the comment is no longer defined as "full name" (can >contain arbitrary data). The normal purpose of comments are human >readable hints at protocol level (not part of the payload). The >exception in RFC850 was an abuse of the comment. "Abuse of the comment" is nonsense. RFC850 didn't create the practice. It inherited it from Mail format and a practice on ARPANET of putting one's full name in a comment. It's stated right there in RFC850 why it was done. You know, standards tend to be written to accomodate current practice, so that's what happened at the time. With three decades of hindsight, golly, maybe RFC850 should have treated it like a comment as is the current practice, but it didn't break anything not to treat it like a comment. Someone else did the work and second guessing them today isn't helpful. But I certainly object to parsing it, then re-writing it. Full name in parentheses doesn't break anything, so leave it alone. I love your own complete abuse of syntax on From. Folding white space before the "@" symbol? Really? Multiple comments in multiple sets of parentheses? Nice demonstration of absurdity there. I'm afraid trn4's parser wasn't written to handle cutesy-pie posters overwhelming their From headers with that much garbage, so I'm posting this followup with a mal-formed attribution line. >>>>Because the old format from RFC850 is still in common use for USENET >>>>articles, for flnews I have implemented a RFC5536 parser with a >>>>converter [3] in front of it: If the old RFC850 format is detected, it is >>>>first converted to the current format and the result is processed by the >>>>RFC5536 based header parser. >>>Yup, that's what I'd do too. Basically, if you have a bare email address >>>and one comment, assume the contents of the comment is actually a name. >>What if it really was a comment? >>I don't see any harm to Usenet or any benefit to the author in >>making assumptions and translating into a different format. >There are no assumptions required. There is an assumption required, which is what is being discussed: The author is using deprecated syntax to state his full name and isn't making a comment. You have just demonstrated why making such assumptions are unsafe, because some author deliberately trying to break parsing whilst trying to claim that what he's put on From isn't nonstandard, when clearly, he violated a SHOULD NOT without having a valid reason to do so. (I'll take your word for it that you're violating a SHOULD NOT; didn't bother to check.) >The current format can be identified via the angle brackets of the >address. If there are no angle brackets, there can be no full name. We're not discussing that, are we. We're discussing whether it's safe to make assumptions about what's in parentheses and whether to assume the deprecated format was used. >Guessing the meaning of the undefined content in comments will require >assumtions instead. Making that assumption would contradict your statement, quoted above, that there are no assumptions required. >Therefore a standard compliant RFC5536 parser should find no "full name" >in an address with RFC850 format. >My converter explicitly declares the content of the comment as the >"full name" and feed the result of this declaration into the parser >(that otherwise would detect the mailbox-list only). There's no reason to do anything with it. There's no reason to parse it for the deprecated format. Just leave it be. It won't break anything if left alone, so leave it be. Leave it to the reader to decide for himself if it's a full name or a comment. >Note that the mailbox-list itself is allowed to contain comments and >folding: >| >| From: some.name (not my name) >| @domain.invalid (registered by me) >| (Full name) (garbage) >should be valid syntax according to RFC5322. It is noted that you >"SHOULD NOT" send such things, but the parser of the recipient must >understand them (should report the mailbox "some.name@domain.invalid" >and no "full name" in this case) >I will try to manually edit the "From:" header field of this article for >demonstration. Dear gawd. Why do you take it upon yourself to waste the time of programmers who are trying their best NOT to break things? No one should have to write a parser to accomodate this nonsense.
Technical Details
Message-ID:
<mf6lvb$hs5$1@news.albasani.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!v14no596942lbi.0!news-out.google.com!zn2ni9925lbb.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.45.MISMATCH!ecngs!feeder2.ecngs.de!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mailReferences:
<ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com> <87y4mikrxa.fsf@hope.eyrie.org> <mf5f0h$51o$4@news.albasani.net> <AABVFoWdZC0AAErI.A1.flnews@WStation4.micha.freeshell.org>Show Full Headers
Complete Article Headers
Message-ID: <mf6lvb$hs5$1@news.albasani.net> Subject: Re: Non-standard 'From' fields Date: Sat, 28 Mar 2015 16:47:39 +0000 From: "Adam H. Kerman" <ahk@chinet.com> References: <ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com> <87y4mikrxa.fsf@hope.eyrie.org> <mf5f0h$51o$4@news.albasani.net> <AABVFoWdZC0AAErI.A1.flnews@WStation4.micha.freeshell.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!v14no596942lbi.0!news-out.google.com!zn2ni9925lbb.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!217.73.144.45.MISMATCH!ecngs!feeder2.ecngs.de!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail X-Received: by 10.112.213.100 with SMTP id nr4mr5898316lbc.10.1427561259962; MIME-Version: 1.0 Newsgroups: news.software.nntp Organization: albasani.net Lines: 121 X-Trace: news.albasani.net 8FObp9iPfSeJoQ9zO48NncI2lH5tjWMO/t8hu2MrrqP7ITgvnJTqXVUd6Wfuq+3IayFAJD9pfLpKkPvAA52nEkDF12Pyzdncx/dUY3Km6xiyCMl3hH+kx+mtf0V1BnxW NNTP-Posting-Date: Sat, 28 Mar 2015 16:47:39 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="52fFpHQzUXqgEJ7xfjIK3CjxdKQtZrsVAnSAJlfs2jx60YDoY3XcyOO35VbEPsDmyM7r2m4inbHirXe7cJyf2XX3nQOP18gUxRwQTOthDp6MoJWduDnjRpvm4jBRyQKU"; mail-complaints-to="abuse@albasani.net" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Cancel-Lock: sha1:RMMiunREy+QA8rxV+U1RYU7F0r4=