[ 
https://issues.apache.org/jira/browse/MIME4J-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437323#comment-17437323
 ] 

Andreas Joseph Krogh commented on MIME4J-253:
---------------------------------------------

We've used a custom build with this code in LenientAddressParser:185
{code}
    private Mailbox createMailbox(final String localPart) {
        if (localPart != null && localPart.length() > 0) {
            return new Mailbox(null, null, 
DecoderUtil.decodeEncodedWords(localPart, this.monitor), null);
        } else {
            return null;
        }
    }
{code}

This works well and we've used it for years, would a PR with this fix be 
accepted?

> To/From/Cc-fields containing RFC-1522 "encoded-words" for the whole value 
> fails to parse
> ----------------------------------------------------------------------------------------
>
>                 Key: MIME4J-253
>                 URL: https://issues.apache.org/jira/browse/MIME4J-253
>             Project: James Mime4j
>          Issue Type: Bug
>          Components: parser (core)
>    Affects Versions: 0.7.2, 0.8.0
>            Reporter: Andreas Joseph Krogh
>            Priority: Critical
>
> LenientAddressParser fails to pars To/Cc/From-fields where the whole 
> header-value (includeing adr-spec) is encoded using "Q" or "B"-encoding.
> Example-field
> From: =?utf-8?B?IkvDpXJlIFPDpnRyZSIgPGtzQGRvbWFpbi5jb20+?=
> Should decode to
> From: "Kåre Sætre" <[email protected]>
> but results in 
> From: =?utf-8?B?IkvDpXJlIFPDpnRyZSIgPGtzQGRvbWFpbi5jb20+?=



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to