diff options
author | dd <dd@FreeBSD.org> | 2001-06-03 02:40:37 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-06-03 02:40:37 +0000 |
commit | 90a3a96b5d8968e602137844c29c9371d9d29bda (patch) | |
tree | 84081bdd01a92e67d12144fc02eedee5796e4694 /gnu | |
parent | 824074e63ce067387b2da87f4dfd4bd8b9f8a688 (diff) | |
download | FreeBSD-src-90a3a96b5d8968e602137844c29c9371d9d29bda.zip FreeBSD-src-90a3a96b5d8968e602137844c29c9371d9d29bda.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/send-pr/send-pr.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/send-pr/send-pr.sh b/gnu/usr.bin/send-pr/send-pr.sh index 9a79a24..309043a 100644 --- a/gnu/usr.bin/send-pr/send-pr.sh +++ b/gnu/usr.bin/send-pr/send-pr.sh @@ -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`" |