summaryrefslogtreecommitdiff
path: root/usr.bin/mail/main.c
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2001-06-14 01:08:30 +0000
committerMike Heffner <mikeh@FreeBSD.org>2001-06-14 01:08:30 +0000
commit59c3f4f7ee9da25ac20a55aa573c72ec18553000 (patch)
treed65f1671eab412f8ae3e9598a873cd82b801a3ac /usr.bin/mail/main.c
parenteb87cd754f5e541f3c5357dd00fb2f1d9b7d5f05 (diff)
downloadsrc-test2-59c3f4f7ee9da25ac20a55aa573c72ec18553000.tar.gz
src-test2-59c3f4f7ee9da25ac20a55aa573c72ec18553000.zip
Notes
Diffstat (limited to 'usr.bin/mail/main.c')
-rw-r--r--usr.bin/mail/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c
index 633febcaf8a8..0421a88489c7 100644
--- a/usr.bin/mail/main.c
+++ b/usr.bin/mail/main.c
@@ -93,7 +93,6 @@ main(argc, argv)
bcc = NULL;
smopts = NULL;
subject = NULL;
- replyto = NULL;
while ((i = getopt(argc, argv, "INT:b:c:dfins:u:v")) != -1) {
switch (i) {
case 'T':
@@ -219,14 +218,13 @@ Usage: %s [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...\n\
if (*s != '\0')
load(s);
}
- if ((cp = getenv("REPLYTO")) != NULL)
- replyto = cp;
-
/*
* Expand returns a savestr, but load only uses the file name
* for fopen, so it's safe to do this.
*/
load(expand("~/.mailrc"));
+
+ replyto = value("REPLYTO");
if (!rcvmode) {
mail(to, cc, bcc, smopts, subject, replyto);
/*