Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
54d8c66f
Unverified
Commit
54d8c66f
authored
Nov 09, 2021
by
neil
Committed by
GitHub
Nov 09, 2021
Browse files
Merge pull request #3797 from Scre13/patch_lf_mime_version
Removed newline at the end of subject, added MIME-Version header
parents
f63409ee
95bbf1b1
Changes
1
Show whitespace changes
Inline
Side-by-side
notify/mail.sh
View file @
54d8c66f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment