[ 
https://issues.apache.org/jira/browse/MIME4J-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski updated MIME4J-198:
-------------------------------------

    Fix Version/s: 0.8

Norman
I did try to make the LenientAddressBuilder capable of dealing with the name in 
comment cases and had to conclude that a solution generic enough as to handle 
all possible combinations would likely take an ungodly amount of ugly code due 
to the inherent ambiguity of the syntax

---
From: [email protected] (Jerry Schwarz)   ->   Jerry Schwarz 
<[email protected]>
From: [email protected] (garbage)(more garbage)   ->   <[email protected]>
From: [email protected] (somewhere in England) .CO.UK   ->   
<[email protected]>
---

I was not able to produce a reliable parsing routine even using a very 
inefficient algorithm that involved several scans/iterations and intermediate 
copies of data. 

If compatibility with such legacy format is really important let's delay it 
until 0.8 and take a bit more time to think options over. My preference would 
be simply to not support such format at all.

Oleg


> AddressList.parse(...) and AddressListParser should respect the "name" in the 
> comments
> --------------------------------------------------------------------------------------
>
>                 Key: MIME4J-198
>                 URL: https://issues.apache.org/jira/browse/MIME4J-198
>             Project: JAMES Mime4j
>          Issue Type: Improvement
>          Components: parser (core)
>    Affects Versions: 0.5, 0.6, 0.6.1
>            Reporter: Norman Maurer
>            Priority: Minor
>             Fix For: 0.8
>
>
> Back in the old days a FROM line did look like this:
> From: [email protected] (Jerry Schwarz)
> So the name is included in the "comment". 
> See http://www.faqs.org/rfcs/rfc1036.html
> There are still some MUA's which use this "syntax". It would be nice if this 
> would be respected and good get retrieved via Mailbox.getName();

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to