Update to use mail instead of sendmail and to not set the from address. Set the reply-to address instead.

(Logical change 1.687)
edge.strict_endians
cantab.net!aia21 2005-03-04 09:54:02 +00:00
parent 19b8d3c7d1
commit f31be4c723
1 changed files with 6 additions and 9 deletions

View File

@ -37,17 +37,14 @@ if [ -z "$(echo ${BKD_HOST} | grep bkbits.net)" ]; then
exit 0
fi
EMAIL="ntfs-cvs <linux-ntfs-cvs@lists.sourceforge.net>"
REPLYTO="Anton Altaparmakov <aia21@cantab.net>"
SUBJECT="Subject: bk-$(echo ${BKD_ROOT} 2>/dev/null | sed "s#.*/##" 2>/dev/null): ChangeSet@${rev} by ${BK_USER}@${BK_HOST}"
# For each ChangeSet, send an email.
bk changes -f -d'$unless(:MERGE:){:CSETREV:\n}' - < "${BK_CSETLIST}" 2>/dev/null | while read rev; do
{
cat <<EOT
From: Anton Altaparmakov <aia21@cantab.net>
To: ntfs-cvs <linux-ntfs-cvs@lists.sourceforge.net>
Subject: bk-$(echo ${BKD_ROOT} 2>/dev/null | sed "s#.*/##" 2>/dev/null): ChangeSet@${rev} by ${BK_USER}@${BK_HOST}
EOT
bk changes -f -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' -r$rev 2>/dev/null |
bk -R prs -h -d'$unless(:MERGE:){ChangeSet@:I:, 20:Dy:-:Dm:-:Dd: :T::TZ:, :P:@:HOST:\n}' - 2>/dev/null
@ -74,7 +71,7 @@ EOT
bk export -tpatch -du -h -r$rev 2>/dev/null
} | sendmail -ti
} | mail -R "\"${REPLYTO}\"" -s "\"${SUBJECT}\"" "\"${EMAIL}\""
done