Browse Source
Merge pull request #3797 from Scre13/patch_lf_mime_version
Removed newline at the end of subject, added MIME-Version header
pull/3800/head
neil
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
notify/mail.sh
|
|
@ -62,7 +62,7 @@ mail_send() { |
|
|
|
fi |
|
|
|
|
|
|
|
contenttype="text/plain; charset=utf-8" |
|
|
|
subject="=?UTF-8?B?$(echo "$_subject" | _base64)?=" |
|
|
|
subject="=?UTF-8?B?$(printf "%b" -- "$_subject" | _base64)?=" |
|
|
|
result=$({ _mail_body | eval "$(_mail_cmnd)"; } 2>&1) |
|
|
|
|
|
|
|
# shellcheck disable=SC2181 |
|
|
@ -131,6 +131,7 @@ _mail_body() { |
|
|
|
echo "To: $MAIL_TO" |
|
|
|
echo "Subject: $subject" |
|
|
|
echo "Content-Type: $contenttype" |
|
|
|
echo "MIME-Version: 1.0" |
|
|
|
echo |
|
|
|
;; |
|
|
|
esac |
|
|
|