tierpod / dmarc-report-converter

Convert dmarc reports from xml to human-readable formats
MIT License
223 stars 25 forks source link

imap: can't read next part: unhandled charset "utf-ascii" #24

Closed tierpod closed 3 months ago

tierpod commented 2 years ago

Some providers send attachments with utf-ascii charset, seems like vendored version of imap library doesn't support it:

Content-Type: application/gzip;
    charset="UTF-ASCII";
tierpod commented 3 months ago

Found similar problem https://github.com/emersion/go-message/issues/148

tierpod commented 3 months ago

Actually, it is mentioned in the README 😄

Automatic encoding and charset handling (to decode all charsets, add import _ "github.com/emersion/go-message/charset" to your application)