René Cordier created JAMES-4000:
-----------------------------------
Summary: JMAP should guess charset of text parts when missing
Key: JAMES-4000
URL: https://issues.apache.org/jira/browse/JAMES-4000
Project: James Server
Issue Type: Improvement
Affects Versions: 3.8.0, 3.8.1
Reporter: René Cordier
Fix For: 3.9.0
Attachments: jmap-charset-missing.png
Given an email with a text part without charset
{code:java}
------------=_1706602778-31669-7
Content-Type: text/plain; name="avertissement.txt"
Content-Disposition: inline; filename="avertissement.txt"
Content-Transfer-Encoding: base64
Q2UgbWVzc2FnZSDpbGVjdHJvbmlxdWUgZXQgdG91cyBsZXMgZmljaGllcnMgYXR0YWNo6XMgcXUn
aWwgY29udGllbnQgc29udCBjb25maWRlbnRpZWxzIGV0IGRlc3RpbulzIGV4Y2x1c2l2ZW1lbnQg
{code}
Today James fails at rendering this properly (cf attachment)
This is because we uses `US_ASCII` as a default when no charset is specified.
Suggestion: we should rather "guess" the charset when that's the case:
[https://github.com/albfernandez/juniversalchardet]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]