Put the originator's full name in the From and Reply-to fields, and

stick their username (which sendmail will make into an e-mail address)
inside '<>'.  Sendmail will still DTRT with this, and it conveniently
puts the submitter's name and e-mail address on one line, just like it
should be after "Submitted by" in a commit message.
This commit is contained in:
Dima Dorfman 2001-06-03 02:40:37 +00:00
parent c0b824f97d
commit 5544e8e700
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77643

View File

@ -85,9 +85,6 @@ if [ "$LOGNAME" = "" ]; then
fi
fi
FROM="$LOGNAME"
REPLY_TO="${REPLY_TO:-${REPLYTO:-$LOGNAME}}"
# Find out the name of the originator of this PR.
if [ -n "$NAME" ]; then
ORIGINATOR="$NAME"
@ -102,6 +99,9 @@ else
rm -f $PTEMP
fi
FROM="$ORIGINATOR <$LOGNAME>"
REPLY_TO="$ORIGINATOR <${REPLY_TO:-${REPLYTO:-$LOGNAME}}>"
if [ -n "$ORGANIZATION" ]; then
if [ -f "$ORGANIZATION" ]; then
ORGANIZATION="`cat $ORGANIZATION`"