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.
This commit is contained in:
parent
807aef8a14
commit
1392d029e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue