james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: [mime4j] is ""foo@bar.com a legitimate address?
Date Mon, 26 May 2008 16:54:28 GMT
Robert Burrell Donkin ha scritto:
> https://issues.apache.org/jira/browse/MIME4J-31 raises a bug that
> ""foo@bar.com cannot be parsed.
> 
> is ""foo@bar.com s legitimate address?
> 
> - robert

IIRC if the local part starts with " then it is a quoted local part and 
have to end with ", too.
So I'm confident it is invalid.

Stefano

Quoting rfc2822:
-------------
local-part      =       dot-atom / quoted-string / obs-local-part

atext           =       ALPHA / DIGIT / ; Any character except controls,
                         "!" / "#" /     ;  SP, and specials.
                         "$" / "%" /     ;  Used for atoms
                         "&" / "'" /
                         "*" / "+" /
                         "-" / "/" /
                         "=" / "?" /
                         "^" / "_" /
                         "`" / "{" /
                         "|" / "}" /
                         "~"

atom            =       [CFWS] 1*atext [CFWS]

dot-atom        =       [CFWS] dot-atom-text [CFWS]

dot-atom-text   =       1*atext *("." 1*atext)

quoted-string   =       [CFWS]
                         DQUOTE *([FWS] qcontent) [FWS] DQUOTE
                         [CFWS]

obs-local-part  =       word *("." word)

word            =       atom / quoted-string


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message