symmetryinvestments / imap-d

D library for IMAP (JMAP is a work-in-progress but the basics work)
14 stars 10 forks source link

draft: add utf8 and iso 8859-1 header decoding #83

Closed Laeeth closed 3 years ago

Laeeth commented 3 years ago

Sorry for the code. It's what I could manage in the time I had. Please take ownership for getting it over the line. @otrho closes #78

otrho commented 3 years ago

I kinda rewrote it in the end to be a bit less fiddly. Hope it still fits what you had in mind.

Laeeth commented 3 years ago

Nice. Lgtm

adamdruppe commented 3 years ago

so this project depends on my email lib and this kind of stuff is already in there fyi, it does quoted-printable decoding, charset translation (it handles a lot of different thing). Unless it is buggy lol.

convertToUtf8Lossy(decodeQuotedPrintable(textMessageBody), charset);

that kind of thing. So if you have trouble in the future we might be able to use some of those functions.