From: Willy Tarreau Date: Sat, 15 Feb 2020 14:24:28 +0000 (+0100) Subject: SCRIPTS: announce-release: use mutt -H instead of -i to include the draft X-Git-Tag: v2.2-dev3~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1392d029e6ddd3c800f3f56c654e49800b4f306b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/scripts/announce-release b/scripts/announce-release index b04c89d746..0c1f607122 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