Terminate email header lines with \r\n (#6187)
https://tools.ietf.org/html/rfc2822#section-2.2 > Header fields are lines composed of a field name, followed by a colon (":"), followed by a field body, and terminated by CRLF I guess most clients handle it fine anyway if the threading is working, I saw it in BSD mailx which doesn't support threading.
toofar committed
Jun 4, 2019 at 01:28 UTC
2a48134cda5975f790d31cea29dae732bef3d7df
1 file changed
+1
-1
health/notifications/alarm-notify.sh.in
+1
-1
@@ -681,7 +681,7 @@ date=$(date --date=@${when} "${date_format}" 2>/dev/null)
681
# ----------------------------------------------------------------------------
682
# prepare some extra headers if we've been asked to thread e-mails
683
if [ "${SEND_EMAIL}" == "YES" ] && [ "${EMAIL_THREADING}" != "NO" ]; then
684
- email_thread_headers="In-Reply-To: <${chart}-${name}@${host}>\\nReferences: <${chart}-${name}@${host}>"
684
+ email_thread_headers="In-Reply-To: <${chart}-${name}@${host}>\\r\\nReferences: <${chart}-${name}@${host}>"
685
else
686
email_thread_headers=
687
fi