From: Stephen Rothwell Date: Wed, 30 Sep 2020 11:48:00 +0000 (+1000) Subject: change the order of arguments to send_email X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=d57cd6c12a8c22190f73d2f9ee48420154af9e43;p=next-scripts change the order of arguments to send_email I want to pass more cc's and the other 2 parameters are (effectively) single items. --- diff --git a/final_msg b/final_msg index da9ec44..ebbbc0f 100755 --- a/final_msg +++ b/final_msg @@ -17,6 +17,6 @@ sed -i.bak -e 's/^\(Changes since\) [0-9]*:/\1 '"$prev"':/' \ -e 's/^\(I am currently merging\) [0-9]* /\1 '"$ntrees"' /' \ ../last_msg -"$tools_dir/send_email" "$to" "$cc" "$subject" <../last_msg +"$tools_dir/send_email" "$subject" "$to" "$cc" <../last_msg exit 0 diff --git a/message_helper b/message_helper index 08b6649..78584d4 100755 --- a/message_helper +++ b/message_helper @@ -36,6 +36,6 @@ fi filter="$filter | fmt -s" { printf 'Hi all,\n\n'; eval "$filter"; } | - "$bin_dir"/send_email "$contact" "$cc" "linux-next: $subject" + "$bin_dir"/send_email "linux-next: $subject" "$contact" "$cc" exit 0 diff --git a/send_email b/send_email index 9930ad2..b572b9c 100755 --- a/send_email +++ b/send_email @@ -3,9 +3,9 @@ mail_dir=$(realpath --relative-to=. "$(dirname "$0")/../mails") printf -v TARGET '%s/%(i%Y-%m-%d+%s)T.email' "$mail_dir" -1 -to="$1" -cc="$2" -subject="$3" +subject="$1" +to="$2" +cc="$3" { cat <