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:
dd 2001-06-03 02:40:37 +00:00
parent 1471f539f8
commit b13dbc237c

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`"