]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
SCRIPTS: announce-release: use mutt -H instead of -i to include the draft
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Feb 2020 14:24:28 +0000 (15:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Feb 2020 14:24:28 +0000 (15:24 +0100)
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

index b04c89d7466df376325741b94cac0c4ae86b2f8c..0c1f607122e7c1198a66ef7c7b10ffd4dac9c9bd 100755 (executable)
@@ -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