I set ARCHIVEDIR to capture everything being delivered. The captured
data file has the original MIME boundaries in place, and when copied to
a maildir has a perfectly readable attachment.
Check whether the original message has trailing CRs. If so, it means that
when the message was originally received via SMTP, lines were terminated
with CRCRLF, instead of CRLF. Garbage in, garbage out.