You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to verify signatures of mails from Maildir, but had to do .replace("\n", "\r\n").
It would be nice to reuse mailparse splitting instead of splitting in a non-robust way. mailparse currently does not expose body_bytes (and header_bytes) fields, but proposing this to https://github.com/staktrace/mailparse/ is easy as it is well-maintained.
The text was updated successfully, but these errors were encountered:
Current code of
get_body
expects that body starts after<CR><LF><CR><LF>
:dkim/src/hash.rs
Line 23 in b50a082
This code does not work for mails extracted from Dovecot Maildir which have LF line endings.
mailparse
already splits headers and body in a different way insideparse_headers
function:https://github.com/staktrace/mailparse/blob/c51e92416c193072c739035fdcd5501c15f690e4/src/lib.rs#L939C1-L952C7
I managed to verify signatures of mails from Maildir, but had to do
.replace("\n", "\r\n")
.It would be nice to reuse
mailparse
splitting instead of splitting in a non-robust way.mailparse
currently does not exposebody_bytes
(andheader_bytes
) fields, but proposing this to https://github.com/staktrace/mailparse/ is easy as it is well-maintained.The text was updated successfully, but these errors were encountered: