mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.36k stars 88 forks source link

mox improper character set handling and inadequate email parsing 0.0.9 #123

Open haraldrudell opened 5 months ago

haraldrudell commented 5 months ago

as of 0.0.9 it appears improper character set handling is employed. — what character set mox sends and receives to the client is mandated by advertised IMAP4rev1 IMAP4rev2 server capabilities and what ENABLE commands has been received. the client can also use CHARSET in commands — mox must maintain per-session and per-command character set information

— what character set is in email is mandated by the email content. A proper email parses like enmime can determine this per rfc — if mox wants to extract anything from an email, the entire email structure must be parsed properly — mox baseline must be perfect rfc compliance email parsing with the possible addition of settings for laxed parsing

mjl- commented 4 months ago

i know of specific commands (like search and append) that can mention charsets.

could you describe a scenario where mox is currently doing the wrong thing? that makes it easier to see what will be involved in fixing the problem.