mirror / busybox

BusyBox mirror
https://www.busybox.net/
Other
1.64k stars 617 forks source link

sendmail replaces \r\n characters with \r\r\n making the mail broken #58

Open speller opened 2 years ago

speller commented 2 years ago

I'm using the following sendmail version:

/magento # sendmail --help
BusyBox v1.34.1 (2022-07-19 20:11:24 UTC) multi-call binary.

The issue happens with PHP8. Its mail function sends headers and body with \r\n line delimiters according to standards and passes this data to sendmail. But sendmail converts all line-endings to \r\r\n making the whole mail broken.