You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by GitBox <gi...@apache.org> on 2020/08/24 10:32:47 UTC

[GitHub] [incubator-ponymail] Humbedooh commented on issue #463: Bug: Archiver#msgbody: poor handling of conversion to string

Humbedooh commented on issue #463:
URL: https://github.com/apache/incubator-ponymail/issues/463#issuecomment-679047423


   Currently, the decoding tries to use all possible character sets found in the message, not necessarily ones pertaining to the body itself. It also assumes that the default is UTF-8. Both are IMHO wrong, and are handled differently in Foal:
   
   - US-ASCII should be assumed default as per RFC822. All other character sets MUST be accompanied with a Content-Type encoding sub-header.
   - Only the message part or its parent should be looked at for character sets, and parent should only be fallback if the message part does not have a valid encoding sub-headeer.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org