summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorChristian Ludwig <chrissicool@gmail.com>2018-03-03 23:58:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-06 08:18:00 (GMT)
commitd11c943c7824ed91ec396c8726d18ce687848d34 (patch)
tree6107f6945f10aa59a1517cf8f7d27b36d4023d50 /t/t9001-send-email.sh
parent15dc3b9161dad12e37d74863d0ab5d94b661a936 (diff)
downloadgit-d11c943c7824ed91ec396c8726d18ce687848d34.zip
git-d11c943c7824ed91ec396c8726d18ce687848d34.tar.gz
git-d11c943c7824ed91ec396c8726d18ce687848d34.tar.bz2
send-email: support separate Reply-To address
In some projects contributions from groups are only accepted from a common group email address. But every individual may want to receive replies to her own personal address. That's what we have 'Reply-To' headers for in SMTP. So introduce an optional '--reply-to' command line option. This patch re-uses the $reply_to variable. This could break out-of-tree patches! Signed-off-by: Christian Ludwig <chrissicool@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 4d261c2..c97356a 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -199,6 +199,7 @@ Message-Id: MESSAGE-ID-STRING
X-Mailer: X-MAILER-STRING
In-Reply-To: <unique-message-id@example.com>
References: <unique-message-id@example.com>
+Reply-To: Reply <reply@example.com>
Result: OK
EOF
@@ -291,6 +292,7 @@ test_expect_success $PREREQ 'Show all headers' '
--dry-run \
--suppress-cc=sob \
--from="Example <from@example.com>" \
+ --reply-to="Reply <reply@example.com>" \
--to=to@example.com \
--cc=cc@example.com \
--bcc=bcc@example.com \