#!/bin/bash
subject="build failure after merge of the BRANCH tree"
-body="After merging the BRANCH tree, today's linux-next build ()%0A\
-failed like this:"
-$(dirname $0)/message_helper "$@" "$subject" "$body"
+$(dirname $0)/message_helper "$@" "$subject" <<EOF
+After merging the BRANCH tree, today's linux-next build ()
+failed like this:
+EOF
exit 0
#!/bin/bash
subject="build warning after merge of the BRANCH tree"
-body="After merging the BRANCH tree, today's linux-next build ()%0A\
-produced this warning:"
-$(dirname $0)/message_helper "$@" "$subject" "$body"
+$(dirname $0)/message_helper "$@" "$subject" <<EOF
+After merging the BRANCH tree, today's linux-next build ()
+produced this warning:
+EOF
exit 0
}
subject="manual merge of the BRANCH tree with the tree"
-body="Today's linux-next merge of the BRANCH tree got $conf in $file between commit (%22%22) from the tree and commit (%22%22) from the BRANCH tree.%0A\
-%0A\
-I fixed it up (see below) and can carry the fix as necessary (no action%0A\
-is required)."
-$(dirname $0)/message_helper $branch "$subject" "$body"
+$(dirname $0)/message_helper $branch "$subject" <<EOF
+Today's linux-next merge of the BRANCH tree got $conf in $file between commit ("") from the tree and commit ("") from the BRANCH tree.
+
+I fixed it up (see below) and can carry the fix as necessary (no action
+is required).
+EOF
exit 0
[ "${contact%,*}" = "${contact}" ] || greeting="all"
subject="${1//BRANCH/$branch}"
-body="${2//BRANCH/$branch}"
-sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org,%20linux-kernel@vger.kernel.org&Subject=linux-next: $subject&Body=Hi $greeting,%0A\
-%0A\
-$body"
+$(dirname $0)/send_email "$contact" "linux-next@vger.kernel.org, linux-kernel@vger.kernel.org" "linux-next: $subject" <<EOF
+Hi $greeting,
+
+$(sed "s/BRANCH/$branch/g")
+EOF
exit 0
--- /dev/null
+#!/bin/bash
+
+to="$1"
+cc="$2"
+subject="$3"
+
+claws-mail --compose-from-file - <<EOF
+To: $to
+CC: $cc
+Subject: $subject
+
+$(cat)
+EOF
+
+exit 0