From 1392d029e6ddd3c800f3f56c654e49800b4f306b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 15 Feb 2020 15:24:28 +0100 Subject: [PATCH] SCRIPTS: announce-release: use mutt -H instead of -i to include the draft Commit 0f5ce6014a ("SCRIPTS: announce-release: place the send command in the mail's header") broke the announce-release script: by not having to edit the message at all anymore, mutt does nothing when sending, but it still does if the message is edited (which was the case before). With some testing, it appears that mutt -H does work when there's no change, so let's use this instead. This should be backported till 1.7. --- scripts/announce-release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/announce-release b/scripts/announce-release index b04c89d74..0c1f60712 100755 --- a/scripts/announce-release +++ b/scripts/announce-release @@ -124,7 +124,7 @@ fi ( echo "# Send this using:" - echo "# mutt -i <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEW\" haproxy@formilux.org" + echo "# mutt -H <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEW\" haproxy@formilux.org" ) >> "$OUTPUT" (echo @@ -218,7 +218,7 @@ humandate=$(date "+%B, $day, %Y" -d "$DATE") echo "The announce was emitted into file $OUTPUT." echo "You can edit it and send it this way :" echo -echo " mutt -i <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEW\" haproxy@formilux.org" +echo " mutt -H <(tail -n +4 ${OUTPUT##*/}) -s \"[ANNOUNCE] haproxy-$NEW\" haproxy@formilux.org" echo echo "The HTML block was emitted into $HTML and needs to be finished by hand." echo