Article View: news.software.nntp
Article #86467Re: Non-standard 'From' fields
From: Michael Baeuerle
Date: Fri, 27 Mar 2015 11:23
Date: Fri, 27 Mar 2015 11:23
58 lines
3722 bytes
3722 bytes
Tim wrote: > > I've noticed that quite a lot of (mostly older) news and e-mail > clients create 'From', 'To' and similar header fields which do not > conform to the usual RFC822 standard (or the extended RFC2822 > standard). > > These fields consist of the e-mail address alone, then a space > followed by the friendly name inside parentheses. Here's an example: > > From: jones@group.org (George Jones) > > Most news and email client software is able to parse this format > without any problem, but I can find no formal definition of it in any > rfc or other documentation. Some of the examples in RFC976 include > this format, but it is not defined therein. > > Where does this format originate from? Is there a formal definition of > it anywhere, to enable me to create a robust parser to detect and > handle it? AFAIK this format was first defined in RFC850 [1]: | | RFC 822 specifies that all text in parentheses is to be | interpreted as a comment. It is common in ARPANET mail to | place the full name of the user in a comment at the end of | the From line. This standard specifies a more rigid | syntax. The full name is not considered a comment, but an | optional part of the header line. Either the full name is | omitted, or it appears in parentheses after the electronic | address of the person posting the article, or it appears | before an electronic address enclosed in angle brackets. | Thus, the three permissible forms are: | | From: mark@cbosgd.UUCP | From: mark@cbosgd.UUCP (Mark Horton) | From: Mark Horton <mark@cbosgd.UUCP> 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". 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. ______________ [1] <http://tools.ietf.org/html/rfc850#section-2.1.3> [2] <http://tools.ietf.org/html/rfc5536#section-3.1.2> [3] <http://micha.freeshell.org/flnews/doc/html/core_8c_source.html#l00329>
Technical Details
Message-ID:
<AABVFTjZlBMAAAoN.A1.flnews@WStation3.stz-e.de>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!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!feeds.phibee-telecom.net!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <AABVFTjZlBMAAAoN.A1.flnews@WStation3.stz-e.de> Subject: Re: Non-standard 'From' fields Date: Fri, 27 Mar 2015 11:23:48 +0000 From: Michael Baeuerle <michael.baeuerle@stz-e.de> References: <ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com> 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!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!feeds.phibee-telecom.net!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 58 Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 X-Trace: individual.net daT4MqkyzfLNJ624nhXthQpQXyuiixBwSKAQwQCS5gxCOV15Ie X-Orig-Path: not-for-mail Cancel-Lock: sha1:ASPqI+fvllojDrCTKHcblzwrsFo= sha1:VkZmf/3vcJb6uyPZ5Qd9q5FO0B0= Injection-Date: 27 Mar 2015 11:23:48 -0000 User-Agent: flnews/0.11pre6 (for GNU/Linux)