emersion / hydroxide

A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge
MIT License
1.51k stars 122 forks source link

hydroxide appears to strip email headers #242

Open bobdobberson opened 1 year ago

bobdobberson commented 1 year ago

I've noticed that mail fetched via IMAP from hydroxide appears to be missing many headers, email delivery information, originating servers, etc.

I'm wondering if there would be a simple way (I don't grok 'go') to avoid the apparent header filtering that is going on in imap/message.go?

https://github.com/emersion/hydroxide/blob/master/imap/message.go#L374

cookiengineer commented 1 year ago

I think @bobdobberson is actually talking about missing Header fields in the https://github.com/emersion/hydroxide/blob/master/protonmail/messages.go#L56-L84 file?

@bobdobberson What kind of mail headers are missing? Do you have a list/examples?

bobdobberson commented 1 year ago

@cookiengineer when I opened this, the messages downloaded by offlineimap via hydroxide were missing all of the important (to me) headers that explain what mail servers the message passed through, and other information.

I do not know if any changes have happened since that improve this behavior.

Take a look at the headers to your messages downloaded through hydroxide compared to 'view original' in the web interface.

bobdobberson commented 1 year ago

To be clear, the headers are present when messages are downloaded with offlineimap via proton-bridge.

mikejzx commented 7 months ago

This is the same issue as #142 (and #201 which was closed as a duplicate)

Related PRs: #143 and possibly #129