mjl- / mox

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

Webmail rarely does not parse From header #204

Closed morki closed 3 months ago

morki commented 3 months ago

Hi @mjl-,

I am happy user of mox for some time, but today I saw something that seems like a bug.

I recieved email from my wife from her work address, and in webmail (I don't use any other client) I see no From header.

image

But when I open email source, I see encoded From header.

image

Maybe there is a bug in parsing? Maybe the new line in between is not standard?

It was sent by Exchange 365 server from Outlook in Windows.

I can privately share you the source email, it was just a request for print of some application document.

mjl- commented 3 months ago

Thanks for reporting @morki! The latest commit should fix the problem. The commit message explains what was going wrong. If you would like to test this change, you can easily get a binary for it following instructions from https://www.xmox.nl/b/#5678b03324864f01668f47c6a78e2d56efe456e5.

morki commented 3 months ago

Thank you very much for so quick fix @mjl-, I can confirm it works now like a charm.

For others maybe visiting this, you should run mox reparse command to reparse the messages for changes to take effect.

mjl- commented 3 months ago

Great! And good point about running mox reparse, I'll mention it in the release notes. I'll try to get a release out in the next week, it's been quite some time.