From 5544e8e700a8227c68b71eef80e079af940a6bc8 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
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 9a79a24dbc07..309043af3cbb 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.3