Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatic: Fix end-of-lines in messages sent by email emitter
Sendmail 8.18.1 started to reject e-mail messages without CRLF line endings: # dnf-automatic libcurl error while sending e-mail: Weird server reply # journalctl -f sendmail[7095]: 508DXZbS007095: collect: relay=localhost, from=<root@localhost>, info=Bare linefeed (LF) not allowed, where=body, status=tempfail This is a deliberate change in Sendmail 8.18.1. And the cause is that automatic plugin composes a message body with UNIX line endings and passes it to cURL library with CURLOPT_READDATA option. While cURL automatically escapes leading dots in the body (".\r\n"), it does not normalize end-of-lines <curl/curl#15942>. This patch fixes it by asking cURL to perform the normalization. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2335508
- Loading branch information