james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: [mime4j] is ""foo@bar.com a legitimate address?
Date Mon, 26 May 2008 19:36:10 GMT
Sorry for all the delay, but my email account was some kind of fucked
up :-(

This emailaddress is invalid IMHO.

Bye
Norman

Am Montag, den 26.05.2008, 18:54 +0200 schrieb Stefano Bagnara:
> 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
> 


---------------------------------------------------------------------
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