Correct multiline ChangeSet comment handling for CIA notifications.
A second line for verification. :)
BKrev: 400862c9W2RdzHuLdGfGe1IBu5XpWw
files="$files<file>$file</file>"
done
+sendmail_command=cat
# Send an email with the final XML message
(cat <<EOF
From: $return_address
<files>$files</files>
EOF
echo " <log>"
-bk changes -r"$REV" -d"\$if(:C:){\$each(:C:){:C:\\\\n}}" | sed 's/\&/\&/g;s/</\</g;s/>/\>/g'
+bk changes -r"$REV" -d'$if(:C:){$each(:C:){:C:\\\n}}' | sed 's/\&/\&/g;s/</\</g;s/>/\>/g'
echo " </log>"
cat <<EOF
</commit>
</body>
</message>
EOF
-) | tee ~/sendmailcmd.$$ | $sendmail_command
+) | $sendmail_command
### The End ###