mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-18 10:28:18 +00:00
d2034778e3
Base64-encoded supplemental trace headers (X-KumoRef) can exceed the 998-octet SMTP line length limit when they include sizeable metadata, causing a strict receiver (eg: us, when an ARF comes back to us with that header) to reject the message at DATA with "line too long". Fold the encoded value across continuation lines so each physical line stays within the limit, and strip the folding whitespace before decoding it back into a feedback report.