Subject: | Mail::Box::Mbox folds empty lines at the beginning (and end) of a message body. |
$ perl -MMail::Box::Mbox -E 'say Mail::Box::Mbox->VERSION'
3.005
$ diff mbox <(perl -MMail::Box::Mbox -E 'Mail::Box::Mbox->new(folder=>shift)->[0]->print' mbox)
1d0
< From postmaster@mensa.de Sun Jan 06 01:35:52 2019
24d22
<
38d35
<
Unfortunately, this invalidates the DKIM signature:
$ <mbox perl -MMail::DKIM::Verifier -E '$dkim=Mail::DKIM::Verifier->new;while(<>){chomp;$dkim->PRINT("$_\cM\cJ")}$dkim->CLOSE;say$dkim->result'
pass
$ perl -MMail::Box::Mbox -E 'Mail::Box::Mbox->new(folder=>shift)->[0]->print' mbox|perl -MMail::DKIM::Verifier -E '$dkim=Mail::DKIM::Verifier->new;while(<>){chomp;$dkim->PRINT("$_\cM\cJ")}$dkim->CLOSE;say$dkim->result'
fail
Please find a sample mbox file to reproduce this attached.
Regards
fany
Subject: | mbox |
Message body not shown because it is not plain text.