aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-07-12 00:37:10 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-23 22:06:44 +0200
commit6504faa88cf7fa5fb116bca1c5480e4fa80c7361 (patch)
tree2676164dfcaee66f2f40e72052301c20d05c21f8 /contrib
parent050d54a82246099ac2218160f43d999ca52ac53b (diff)
downloadaerc-6504faa88cf7fa5fb116bca1c5480e4fa80c7361.tar.gz
release.sh: fine tuning
Shuffle the To/Cc/Bcc headers to avoid people from doing reply all to ~sircmpwn/aerc@lists.sr.ht. Also add Cc: aerc-devel so that the lists archives all have the base message. Unfortunately, there is no way to prevent people from doing reply all and trying to send emails to aerc-announce. Putting aerc-announce in Bcc sounds very ugly. Include the person doing the release as Bcc. sendmail -t does not have a copy-to=Sent option. Use base32 and a shorter suffix for Message-ID. base64 is ugly. Use 'vi' if $EDITOR is unset. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/release.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/release.sh b/contrib/release.sh
index fa70d869..12a0c5fe 100755
--- a/contrib/release.sh
+++ b/contrib/release.sh
@@ -34,11 +34,13 @@ trap "rm -f -- $email" EXIT
cat >"$email" <<EOF
To: aerc-annouce <~rjarry/aerc-announce@lists.sr.ht>
-Cc: aerc <~sircmpwn/aerc@lists.sr.ht>
+Cc: aerc-devel <~rjarry/aerc-devel@lists.sr.ht>
+Bcc: aerc <~sircmpwn/aerc@lists.sr.ht>,
+ $(git config user.name) <$(git config user.email)>
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).$(base64 -w20 < /dev/urandom | head -n1)@$(hostname)>
+Message-ID: <$(date +%Y%m%d%H%M%S).$(base32 -w12 < /dev/urandom | head -n1)@$(hostname)>
Hi all,
@@ -49,6 +51,6 @@ https://git.sr.ht/~rjarry/aerc/refs/$next_tag
$(git tag -l --format='%(contents)' "$next_tag" | sed -n '/BEGIN PGP SIGNATURE/q;p')
EOF
-$EDITOR "$email"
+${EDITOR:-vi} "$email"
/usr/sbin/sendmail -t < "$email"