james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Updated] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments
Date Fri, 15 Jul 2011 12:22:59 GMT

     [ 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: jerry@eagle.ATT.COM (Jerry Schwarz)   ->   Jerry Schwarz <jerry@eagle.ATT.COM>
From: jerry@eagle.ATT.COM (garbage)(more garbage)   ->   <jerry@eagle.ATT.COM>
From: jerry@eagle.ATT (somewhere in England) .CO.UK   ->   <jerry@eagle.ATT.CO.UK>
---

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: jerry@eagle.ATT.COM (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

        

Mime
View raw message