aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/release.sh
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-28 00:29:08 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-13 00:38:08 +0200
commitaa6df60483477b7519b3aeb81207cc1c6565fcf5 (patch)
tree8088b61f4403b6eeca2271bed6625d87a21c73b2 /contrib/release.sh
parent8ec83b010a8efcfe87df9c2bceec318e94c6ca53 (diff)
downloadaerc-aa6df60483477b7519b3aeb81207cc1c6565fcf5.tar.gz
release.sh: fix email encoding
The release emails are sent without any Content-Transfer-Encoding nor Content-Type headers. This causes non-ASCII characters to be rendered as garbage by email clients. Here are two examples from the latest release: Mat��j Cepl Nojus Gudinavi��ius Everything is UTF-8 locally, state it explicitly in the email. Use 8bit as transfer encoding since we are not quoting anything. Add a From: header since some sendmail implementations do not add a default value when it is missing. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'contrib/release.sh')
-rwxr-xr-xcontrib/release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/release.sh b/contrib/release.sh
index 6ba01e14..68ae2854 100755
--- a/contrib/release.sh
+++ b/contrib/release.sh
@@ -37,6 +37,7 @@ email=$(mktemp aerc-release-XXXXXXXX.eml)
trap "rm -f -- $email" EXIT
cat >"$email" <<EOF
+From: $(git config user.name) <$(git config user.email)>
To: aerc-annouce <~rjarry/aerc-announce@lists.sr.ht>
Cc: aerc-devel <~rjarry/aerc-devel@lists.sr.ht>
Bcc: aerc <~sircmpwn/aerc@lists.sr.ht>,
@@ -45,6 +46,9 @@ Reply-To: aerc-devel <~rjarry/aerc-devel@lists.sr.ht>
Subject: aerc $next_tag
User-Agent: aerc/$next_tag
Message-ID: <$(date +%Y%m%d%H%M%S).$(base32 -w12 < /dev/urandom | head -n1)@$(hostname)>
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8
+MIME-Version: 1.0
Hi all,