Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
10801bfb
Unverified
Commit
10801bfb
authored
May 12, 2019
by
Honza Hommer
Browse files
use mutt if installed
parent
a89a6207
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/mail.sh
View file @
10801bfb
...
...
@@ -15,6 +15,8 @@ mail_send() {
if
_exists
"sendmail"
;
then
_MAIL_BIN
=
"sendmail"
elif
_exists
"mutt"
;
then
_MAIL_BIN
=
"mutt"
elif
_exists
"mail"
;
then
_MAIL_BIN
=
"mail"
else
...
...
@@ -55,6 +57,9 @@ _mail_send() {
sendmail
)
"
$_MAIL_BIN
"
-f
"
$MAIL_FROM
"
"
$MAIL_TO
"
;;
mutt
)
"
$_MAIL_BIN
"
-s
"
$subject
"
-e
"my_hdr From:
$MAIL_FROM
"
-e
"my_hdr Content-Type:
$contenttype
"
"
$MAIL_TO
"
;;
mail
)
"
$_MAIL_BIN
"
-s
"
$subject
"
-a
"From:
$MAIL_FROM
"
-a
"Content-Type:
$contenttype
"
"
$MAIL_TO
"
;;
...
...
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