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 "Chung dae hyun (Jira)" <mi...@james.apache.org> on 2024/04/15 15:09:00 UTC
[jira] [Created] (MIME4J-328) parse error
Chung dae hyun created MIME4J-328:
-------------------------------------
Summary: 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.7.2
Reporter: Chung dae hyun
Attachments: DecoderUtilFunysalt.java
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)