From 6504faa88cf7fa5fb116bca1c5480e4fa80c7361 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 12 Jul 2022 00:37:10 +0200 Subject: 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 Acked-by: Moritz Poldrack --- contrib/release.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'contrib/release.sh') 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" < -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" -- cgit