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 "Niklas Therning (JIRA)" <mi...@james.apache.org> on 2010/11/03 11:51:25 UTC
[jira] Created: (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
AddressListParser should allow non ASCII characters in the name part of addresses
---------------------------------------------------------------------------------
Key: MIME4J-181
URL: https://issues.apache.org/jira/browse/MIME4J-181
Project: JAMES Mime4j
Issue Type: Bug
Components: dom
Affects Versions: 0.7
Reporter: Niklas Therning
Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
Posted by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated MIME4J-181:
-------------------------------------
Issue Type: Improvement (was: Bug)
I personally do not think it is a bug, thought, I also would like the AddressListParser to be more lenient about non-ASCII characters in the display-name. Unfortunately it appears that the fix for the issue may require a fair number of declarations in the jjtree file to be duplicated (one for ASCII-only constructs and another one for those where non-ASCII characters are permitted)
Admittedly I know next to nothing about JJTREE, so, ideally someone with a better understanding of jjtree should take a look.
Oleg
> AddressListParser should allow non ASCII characters in the name part of addresses
> ---------------------------------------------------------------------------------
>
> Key: MIME4J-181
> URL: https://issues.apache.org/jira/browse/MIME4J-181
> Project: JAMES Mime4j
> Issue Type: Improvement
> Components: dom
> Affects Versions: 0.7
> Reporter: Niklas Therning
> Attachments: mime4j.patch
>
>
> Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
Posted by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated MIME4J-181:
-------------------------------------
Fix Version/s: 0.8
> AddressListParser should allow non ASCII characters in the name part of addresses
> ---------------------------------------------------------------------------------
>
> Key: MIME4J-181
> URL: https://issues.apache.org/jira/browse/MIME4J-181
> Project: JAMES Mime4j
> Issue Type: Improvement
> Components: dom
> Affects Versions: 0.7
> Reporter: Niklas Therning
> Fix For: 0.8
>
> Attachments: mime4j.patch
>
>
> Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
Posted by "Niklas Therning (JIRA)" <mi...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Therning updated MIME4J-181:
-----------------------------------
Attachment: mime4j.patch
Patch which adds a test method to AddressTest which demonstrates this bug.
> AddressListParser should allow non ASCII characters in the name part of addresses
> ---------------------------------------------------------------------------------
>
> Key: MIME4J-181
> URL: https://issues.apache.org/jira/browse/MIME4J-181
> Project: JAMES Mime4j
> Issue Type: Bug
> Components: dom
> Affects Versions: 0.7
> Reporter: Niklas Therning
> Attachments: mime4j.patch
>
>
> Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Resolved] (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
Posted by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved MIME4J-181.
--------------------------------------
Resolution: Fixed
Fix Version/s: (was: 0.8)
0.7
One can now use LenientFieldParser instead of DefaultFieldParser when a more relaxed handling of address fields is desired.
Oleg
> AddressListParser should allow non ASCII characters in the name part of addresses
> ---------------------------------------------------------------------------------
>
> Key: MIME4J-181
> URL: https://issues.apache.org/jira/browse/MIME4J-181
> Project: JAMES Mime4j
> Issue Type: Improvement
> Components: dom
> Affects Versions: 0.7
> Reporter: Niklas Therning
> Fix For: 0.7
>
> Attachments: mime4j.patch
>
>
> Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MIME4J-181) AddressListParser should allow non
ASCII characters in the name part of addresses
Posted by "Markus Wiederkehr (JIRA)" <mi...@james.apache.org>.
[ https://issues.apache.org/jira/browse/MIME4J-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930575#action_12930575 ]
Markus Wiederkehr commented on MIME4J-181:
------------------------------------------
To me this looks a bit like a duplicate of MIME4J-130. While the motivations behind the issues are not the same they can probably be treated as one and be resolved together.
MIME4J-130 is more about creating new messages from scratch (e.g. the user enters an e-mail address in a field and a message should be created for it).
This issue is more about parsing existing (but not well-formed) messages.
> AddressListParser should allow non ASCII characters in the name part of addresses
> ---------------------------------------------------------------------------------
>
> Key: MIME4J-181
> URL: https://issues.apache.org/jira/browse/MIME4J-181
> Project: JAMES Mime4j
> Issue Type: Improvement
> Components: dom
> Affects Versions: 0.7
> Reporter: Niklas Therning
> Attachments: mime4j.patch
>
>
> Seems quite common that user agents don't encode From: and Sender: fields properly. This means that they contain non ASCII characters. E.g. "From: Håkan Öster <ha...@example.net>". It would be nice if Mime4j could handle these addresses without a parse error at least in non strict mode. Right now AddressListParser fails with a ParseException because it only allows ASCII characters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.