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 "Benoit Tellier (Jira)" <mi...@james.apache.org> on 2024/04/29 12:31:00 UTC
[jira] [Resolved] (MIME4J-328) parse error
[ https://issues.apache.org/jira/browse/MIME4J-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier resolved MIME4J-328.
-----------------------------------
Fix Version/s: 0.8.12
Resolution: Fixed
I merged those changes in https://github.com/apache/james-mime4j/pull/101
> parse error
> -----------
>
> Key: MIME4J-328
> URL: https://issues.apache.org/jira/browse/MIME4J-328
> Project: James Mime4j
> Issue Type: Bug
> Components: parser (core)
> Affects Versions: 0.8.11
> Reporter: Chung dae hyun
> Priority: Major
> Fix For: 0.8.12
>
> Attachments: DecoderUtilFunysalt.java
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When using the DecoderUtil.decodeEncodedWords function included in version 0.7.2
> Brokenness occurs when decoding the string below:
> ubject: =?utf-8?B?W1NQQU1dIFJlOiBbbWNsb3VkLWJhcmlzdGFdIO2BtOudvOyasOuTnOuwlOumrOyKpO2DgCA37LCoIO2WieyCrC3rsJztkQ==?=
> =?utf-8?B?nOyekOujjCDtj6zrqacg6rO17Jyg?=
> [SPAM] Re: [mcloud-barista] 클라우드바리스타 7차 행사-발��자료 포멧 공유
> Originally it should be parsed as follows:
> [SPAM] Re: [mcloud-barista] 클라우드바리스타 7차 행사-발표자료 포멧 공유
> The reason is that it needs to be parsed continuously as a stream byte, but the middle byte is lost when decoding each statement.
> I have attached the modified class, so please review and refactor it.
> ps : Added parsing as UTF-7 using the com.beetstra.jutf7 library.
> thank you
--
This message was sent by Atlassian Jira
(v8.20.10#820010)