From: Neale Pickett <neale@woozle.org>
To: mlmmj@mlmmj.org
Subject: Re: silently discarded post
Date: Fri, 30 Sep 2005 15:36:35 +0000 [thread overview]
Message-ID: <200509300936.36102.neale@woozle.org> (raw)
In-Reply-To: <003f01c5c4e1$dbd80420$6664a8c0@stnick>
On Friday 30 September 2005 08:34 am, Mads Martin Joergensen wrote:
> It is the source of the error, and very hard to work around. Reason
> mlmmj discards it, is that it's not a valid from with two email adresses
> in it, and then it's thrown away.
The original header value was:
From: "Patterson, Daniel@EDD" <DPatters@edd.ca.gov>
This is perfectly valid according to both RFC 822 and RFC 2822, and parsing
this as two addresses is an error. I'll work on a patch to correctly parse
it, but I can't promise anything right away.
The stuff inside the quotation marks is considered a "display-name" in the RFC
2822 BNF, section 3.4:
address = mailbox / group
mailbox = name-addr / addr-spec
name-addr = [display-name] angle-addr
angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
group = display-name ":" [mailbox-list / CFWS] ";"
[CFWS]
display-name = phrase
mailbox-list = (mailbox *("," mailbox)) / obs-mbox-list
address-list = (address *("," address)) / obs-addr-list
And then "phrase" is defined in section 3.2.6:
word = atom / quoted-string
phrase = 1*word / obs-phrase
And "quoted string" is discussed in 3.2.5:
qtext = NO-WS-CTL / ; Non white space controls
%d33 / ; The rest of the US-ASCII
%d35-91 / ; characters not including "\"
%d93-126 ; or the quote character
qcontent = qtext / quoted-pair
quoted-string = [CFWS]
DQUOTE *([FWS] qcontent) [FWS] DQUOTE
[CFWS]
Correctly parsing all valid email addresses is a pain. I can't find any
non-GPL code that does it but I haven't looked too hard.
Neale
next prev parent reply other threads:[~2005-09-30 15:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 10:37 silently discarded post Patrick Bennett
2005-09-29 10:50 ` Mads Martin Joergensen
2005-09-29 11:12 ` Søren Boll Overgaard
2005-09-29 11:16 ` Sven 'Darkman' Michels
2005-09-29 11:40 ` Patrick Bennett
2005-09-29 11:43 ` Mads Martin Joergensen
2005-09-29 20:21 ` Patrick Bennett
2005-09-29 20:48 ` Patrick Bennett
2005-09-29 21:47 ` Patrick Bennett
2005-09-30 14:34 ` Mads Martin Joergensen
2005-09-30 14:38 ` Sven 'Darkman' Michels
2005-09-30 14:41 ` Mads Martin Joergensen
2005-09-30 15:36 ` Neale Pickett [this message]
2005-09-30 15:56 ` Patrick Bennett
2005-09-30 17:36 ` Neale Pickett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509300936.36102.neale@woozle.org \
--to=neale@woozle.org \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.