You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mail: introduce new INI for line ending control #19188
There has been few reports about clients that require LF for sandmail messages. It seems that some clients have such expectation and people need to add dos2unix to sendmail_path. One of the suggested solution is here: #8086 (comment) .
It would be useful to introduce a new mode that would give a better control. That could be called mail.cr_lf_mode and it could allow values crlf (current default), lf (new option doing what dos2unix does), mixed (that would be what mail.mixed_lf_and_crlf = on), os (crlf on Win, otherwise lf). It means there would be an additional allowing conversion to LF.
I'm not sure about the default yet but initially it would be better to keep it as crlf to not cuase further confusion with another break.
Activity
alexandre-daubois commentedon Jul 25, 2025
I would like to investigate this issue. But first I would like to know, doesn't this require an RFC?
bukka commentedon Jul 25, 2025
It doesn't unless some core developer requests it.
Fix GH-19188: Add support for new INI `mail.cr_lf_mode` (#19238)
Fix flaky extra mail header (phpGH-19188)