I have a verify issue with mails coming from gmail with attachments, i have cheked the mail with opendkim and other dkim libararys they Passed, but with go-msgauth i get body hash missmatch.
I have debugged it. Sometimes it happens that in the relaxedBodyCanonicalizer produces a \r\r\n which is written to the writer:
I have a verify issue with mails coming from gmail with attachments, i have cheked the mail with opendkim and other dkim libararys they Passed, but with go-msgauth i get body hash missmatch.
I have debugged it. Sometimes it happens that in the
relaxedBodyCanonicalizer
produces a\r\r\n
which is written to the writer:When i do a hotfix at the end of the Write() function:
the checksum is Valid! i think the fixCRLF() should be different in relaxed Mode I have attached a PR to fix this issue