[php-src] Issue #19188: Mail: introduce new INI for line ending control
| From: | bukka | Date: | Sun, 20 Jul 2025 13:34:45 +0000 |
| Subject: | [php-src] Issue #19188: Mail: introduce new INI for line ending control | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250459@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19188
Author: bukka
### Description
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: https://github.com/php/php-src/issues/8086#issuecomment-1963788493
.
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.