From 90a3a96b5d8968e602137844c29c9371d9d29bda Mon Sep 17 00:00:00 2001
From: dd
Date: Sun, 3 Jun 2001 02:40:37 +0000
Subject: 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.
---
gnu/usr.bin/send-pr/send-pr.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'gnu')
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`"
--
cgit v1.1