How do you think you should parse this header according to RFC 2822?

From: Joe \(Joseph\) Bloggs <[EMAIL PROTECTED]>

My reading of RFC 2822 says that this is three "tokens", 'Joe', '\' and an unfinished comment '(Joseph) Bloggs <[EMAIL PROTECTED]>'

As far as I can see you can have quoted pairs like '\)' in comments, but not outside comments, so the '\' before the '(' isn't a quoting '\' but a real '\'. Outside comments you use " characters for quoting.

Is this right, or am I missing something?

AFAICS, syntactically correct formations of the line could be:

From: "Joe (Joseph) Bloggs" <[EMAIL PROTECTED]>
or
From: (Joe \(Joseph\) Bloggs) [EMAIL PROTECTED]
or even
From: Joe (\(Joseph\)) Bloggs <[EMAIL PROTECTED]>

Reply via email to