james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Burrell Donkin" <robertburrelldon...@gmail.com>
Subject Re: [mime4j] is ""foo@bar.com a legitimate address?
Date Mon, 26 May 2008 18:06:26 GMT
On Mon, May 26, 2008 at 7:04 PM, Stefano Bagnara <apache@bago.org> wrote:
> Robert Burrell Donkin ha scritto:
>>
>> On Mon, May 26, 2008 at 5:54 PM, Stefano Bagnara <apache@bago.org> wrote:
>>>
>>> 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.
>>
>> that's the conclusion i came to too. if anyone disagrees then please jump
>> in.
>>
>> probably best not throw a StringIndexOutOfBoundsException, though
>
> ++1 an uncatched StringIndexOutOfBounds is always a bug, IMO. Maybe a
> ParseException is more appropriate?

i think so

- robert

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