Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

writer creates multipart MIME messages without the MIME-Version header #14

Open
konimarti opened this issue Jan 21, 2024 · 3 comments · May be fixed by #15
Open

writer creates multipart MIME messages without the MIME-Version header #14

konimarti opened this issue Jan 21, 2024 · 3 comments · May be fixed by #15

Comments

@konimarti
Copy link

MIME messages must specify the MIME-Version header at the top level of the message to be compliant with the rfc. However, the writer sets only the multipart MIME types, not the MIME-Version.

Users could set the MIME-Version in the header that is passed to pgpmail. But most are not aware of this. It would be helpful if pgpmail would set the MIME-Version directly.

Would it make sense to set the MIME-Version in the writer?

@emersion
Copy link
Owner

I'm not sure. pgpmail is supposed to only add PGP-related header fields, not other arbitrary header fields.

@konimarti
Copy link
Author

konimarti commented Jan 21, 2024 via email

@emersion
Copy link
Owner

Hm, that's a good point… And actually, with the examples in the repo, a MIME-Version header field will be added to the encrypted header, which isn't very nice...

I'm not sure what's the best way to fix this issue, but re-opening because I agree it's a valid concern.

@emersion emersion reopened this Jan 23, 2024
@emersion emersion linked a pull request Feb 24, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants