Article View: news.software.nntp
Article #86454Re: Non-standard 'From' fields
From: Tim
Date: Sun, 15 Feb 2015 10:14
Date: Sun, 15 Feb 2015 10:14
30 lines
2388 bytes
2388 bytes
On Sat, 14 Feb 2015 16:27:19 -0800, Russ Allbery <eagle@eyrie.org> wrote: >Tim <tim@nospam.invalid> writes: > >> Is there a formal definition of it anywhere, to enable me to create a >> robust parser to detect and handle it? > >It's defined in RFC 1036, but RFC 1036 is not, in general, rather formal. >It does explain the background, though. Thanks Russ - this is excellent. I had missed that reference in RFC1036. >That format, where the name is expressed in a comment, is quite old. I >suspect it predates RFC 822. It is legal RFC 822 syntax, although >syntactically it just has a comment, with nothing to indicate (in formal >syntax) that the comment is a name. Hmmm, yes. I wonder if RFC822 defined parentheses as comment delimiters because this format was already widespread. Sounds like the only really 'robust' way to deal with this is to just treat it as RFC822 and ignore all the text between and including the parentheses and just use the e-mail address, but it would be nice to be extract the user name if present. Some thought required I think! Thanks. Tim.
Technical Details
Message-ID:
<r5r0ea9bdrndondbalfnvr18v6s84u1kpu@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!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mailReferences:
<ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com> <8761b42f4o.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <r5r0ea9bdrndondbalfnvr18v6s84u1kpu@4ax.com> Subject: Re: Non-standard 'From' fields Date: Sun, 15 Feb 2015 10:14:31 +0000 From: Tim <tim@nospam.invalid> References: <ukdvda99imjm7ba0j7o4u8hem7e8p79nbr@4ax.com> <8761b42f4o.fsf@hope.eyrie.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!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 30 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="0d9a6321eebfee5692bf6bf5a00eb020"; logging-data="9188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jLRRi9L1PiamSOtG33UCM" X-Newsreader: Forte Free Agent 2.0/32.652 Cancel-Lock: sha1:fBC9BtzEXTkQn8P7UBkIKpjIM+c=