You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Norman Maurer (JIRA)" <mi...@james.apache.org> on 2011/06/09 11:07:58 UTC

[jira] [Created] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

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.6.1, 0.6, 0.5
            Reporter: Norman Maurer
            Priority: Minor


Back in the old days a FROM line did look 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


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

[jira] [Commented] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

Posted by "Norman Maurer (JIRA)" <mi...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/MIME4J-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046453#comment-13046453 ] 

Norman Maurer commented on MIME4J-198:
--------------------------------------

If I remember right it was EMACS. I will check again...

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

[jira] [Updated] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

Posted by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org>.
     [ 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 <je...@eagle.ATT.COM>
From: jerry@eagle.ATT.COM (garbage)(more garbage)   ->   <je...@eagle.ATT.COM>
From: jerry@eagle.ATT (somewhere in England) .CO.UK   ->   <je...@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

        

[jira] [Updated] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

Posted by "Norman Maurer (JIRA)" <mi...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/MIME4J-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer updated MIME4J-198:
---------------------------------

    Description: 
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();


  was:
Back in the old days a FROM line did look 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



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

[jira] [Commented] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

Posted by "Stefano Bagnara (JIRA)" <mi...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/MIME4J-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046431#comment-13046431 ] 

Stefano Bagnara commented on MIME4J-198:
----------------------------------------

I never saw this kind of comment in a real mail. What MUAs creates a similar header?

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

[jira] [Commented] (MIME4J-198) AddressList.parse(...) and AddressListParser should respect the "name" in the comments

Posted by "Norman Maurer (JIRA)" <mi...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/MIME4J-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046723#comment-13046723 ] 

Norman Maurer commented on MIME4J-198:
--------------------------------------

Ok it was:

Gnus/5.13 (Gnus v5.13) Emacs/23.3

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