summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/cmd3.c
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-06-14 01:08:30 +0000
committermikeh <mikeh@FreeBSD.org>2001-06-14 01:08:30 +0000
commit3979a82a111d0d9b1fcc24137b7826d4eba0de01 (patch)
treed65f1671eab412f8ae3e9598a873cd82b801a3ac /usr.bin/mail/cmd3.c
parent2f9709c0f1e1952c3be380e8b407a98632986680 (diff)
downloadFreeBSD-src-3979a82a111d0d9b1fcc24137b7826d4eba0de01.zip
FreeBSD-src-3979a82a111d0d9b1fcc24137b7826d4eba0de01.tar.gz
Respect REPLYTO in mailrc.
PR: bin/8322 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> MFC after: 2 weeks
Diffstat (limited to 'usr.bin/mail/cmd3.c')
-rw-r--r--usr.bin/mail/cmd3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/mail/cmd3.c b/usr.bin/mail/cmd3.c
index 6cb5c1d..4ead961 100644
--- a/usr.bin/mail/cmd3.c
+++ b/usr.bin/mail/cmd3.c
@@ -260,8 +260,7 @@ dorespond(msgvec)
head.h_cc = NULL;
head.h_bcc = NULL;
head.h_smopts = NULL;
- if ((head.h_replyto = getenv("REPLYTO")) == NULL)
- head.h_replyto = NULL;
+ head.h_replyto = value("REPLYTO");
head.h_inreplyto = skin(hfield("message-id", mp));
mail1(&head, 1);
return (0);
@@ -626,8 +625,7 @@ doRespond(msgvec)
head.h_cc = NULL;
head.h_bcc = NULL;
head.h_smopts = NULL;
- if ((head.h_replyto = getenv("REPLYTO")) == NULL)
- head.h_replyto = NULL;
+ head.h_replyto = value("REPLYTO");
head.h_inreplyto = mid;
mail1(&head, 1);
return (0);
OpenPOWER on IntegriCloud