aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-09-18 23:32:13 -0300
committerEuAndreh <eu@euandre.org>2022-09-18 23:32:13 -0300
commitf1097703ac9064cbba02d6d7d4dd062215212a36 (patch)
treea86ced037c6f70165238378759ae3b09039bc621 /bin
parentgit mv common-lisp/ lisp-cli/ (diff)
downloaddotfiles-f1097703ac9064cbba02d6d7d4dd062215212a36.tar.gz
dotfiles-f1097703ac9064cbba02d6d7d4dd062215212a36.tar.xz
bin/email: Add UTF-8 content-type header
Diffstat (limited to 'bin')
-rwxr-xr-xbin/email2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/email b/bin/email
index c16ed62..deaf0f0 100755
--- a/bin/email
+++ b/bin/email
@@ -67,7 +67,7 @@ shift $((OPTIND - 1))
eval "$(assert-arg "${SUBJECT:-}" '-s SUBJECT')"
eval "$(assert-arg "${1:-}" 'ADDRESS')"
-printf 'Subject: %s\n\n%s' \
+printf 'Content-Type: text/plain; charset=UTF-8\nSubject: %s\n\n%s' \
"$(echo "$SUBJECT" | tr -d '\n')" \
"$(cat)" |
msmtpq -a euandreh "$@"