mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 16:05:17 -04:00
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:
parent
c0b824f97d
commit
5544e8e700
1 changed files with 3 additions and 3 deletions
|
|
@ -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`"
|
||||
|
|
|
|||
Loading…
Reference in a new issue