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 "Markus Wiederkehr (JIRA)" <mi...@james.apache.org> on 2009/08/18 00:13:14 UTC

[jira] Assigned: (MIME4J-138) DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign

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

Markus Wiederkehr reassigned MIME4J-138:
----------------------------------------

    Assignee: Markus Wiederkehr

> DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign
> ---------------------------------------------------------------------------------
>
>                 Key: MIME4J-138
>                 URL: https://issues.apache.org/jira/browse/MIME4J-138
>             Project: JAMES Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.6
>            Reporter: Markus Wiederkehr
>            Assignee: Markus Wiederkehr
>             Fix For: 0.7
>
>
> For example "=?utf-8?Q?=20test?=" should be decoded as " test". Instead it does not get decoded at all.
> The problem is that DecoderUtil.decodeEncodedWords() falsely identifies =?utf-8?Q?= as the encoded word which cannot be decoded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Assigned: (MIME4J-138) DecoderUtil.decodeEncodedWords() fails if encoded-text starts with an equals sign

Posted by Aron Wieck <aw...@crown.de>.
Hello Markus,

I attached another proposal to fix this issue using Regular  
expressions, this one passes all your test cases.

I sacrificed some log output, but that could easily be reintroduced.

Performance wise, I think in theory it should be slightly faster than  
the current version at the expense of the Patter.compile call on class  
loading, but in real world usage I do not expect a noticeable  
difference.

If you choose to use it, I'll volunteer to fix bugs in the future.


Aron

On 18.08.2009, at 00:13, Markus Wiederkehr (JIRA) wrote:

>     [ https://issues.apache.org/jira/browse/MIME4J-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>  ]
>
> Markus Wiederkehr reassigned MIME4J-138:
> ----------------------------------------
>
>    Assignee: Markus Wiederkehr
>
>> DecoderUtil.decodeEncodedWords() fails if encoded-text starts with  
>> an equals sign
>