summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-07-23 20:06:04 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-07-23 20:06:04 +0000
commit8b4642f4bff86643bbc13a6b3687f06e27d8447d (patch)
treebaf4f10556384800ef53a384a6b730cedfd80366
parent09863f50e64c0c716c10c5445473227dd8cf1ef3 (diff)
elide a little bit later, the final list, after From has been
appended. properly removes if there's a dup in from & to. ok millert@
-rw-r--r--usr.bin/mail/cmd3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/cmd3.c b/usr.bin/mail/cmd3.c
index bd618857dcf..4f439f19021 100644
--- a/usr.bin/mail/cmd3.c
+++ b/usr.bin/mail/cmd3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd3.c,v 1.21 2008/07/16 14:53:41 martynas Exp $ */
+/* $OpenBSD: cmd3.c,v 1.22 2009/07/23 20:06:03 martynas Exp $ */
/* $NetBSD: cmd3.c,v 1.8 1997/07/09 05:29:49 mikel Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95";
#else
-static const char rcsid[] = "$OpenBSD: cmd3.c,v 1.21 2008/07/16 14:53:41 martynas Exp $";
+static const char rcsid[] = "$OpenBSD: cmd3.c,v 1.22 2009/07/23 20:06:03 martynas Exp $";
#endif
#endif /* not lint */
@@ -218,7 +218,6 @@ _respond(msgvec)
np = extract(cp, GTO);
else
np = NULL;
- np = elide(np);
/*
* Delete my name from the reply list,
* and with it, all my alternate names.
@@ -234,6 +233,7 @@ _respond(msgvec)
puts("Empty reply-to field -- replying to author");
np = extract(rcv, GTO);
}
+ np = elide(np);
head.h_to = np;
if ((head.h_subject = hfield("subject", mp)) == NULL)
head.h_subject = hfield("subj", mp);