summaryrefslogtreecommitdiff
path: root/usr.bin/mail/cmd1.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-25 16:42:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-25 16:42:23 +0000
commit23547d7f01a15aa84cbd62168e6925d262abe0c5 (patch)
tree2e039b898ad01af6e80d9970bd4a2264ed017750 /usr.bin/mail/cmd1.c
parent477a76c67b716181e665e202f0f05f930d09716e (diff)
When incorporating new messages, clear the "new" count before the
inc so the count of new messages is useful afterwards. This makes mail behave more like the SunOS version in this respect.
Diffstat (limited to 'usr.bin/mail/cmd1.c')
-rw-r--r--usr.bin/mail/cmd1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mail/cmd1.c b/usr.bin/mail/cmd1.c
index 1d94af2cb06..039f1a557e5 100644
--- a/usr.bin/mail/cmd1.c
+++ b/usr.bin/mail/cmd1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd1.c,v 1.13 1998/05/11 04:15:24 millert Exp $ */
+/* $OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $ */
/* $NetBSD: cmd1.c,v 1.9 1997/07/09 05:29:48 mikel Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmd1.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: cmd1.c,v 1.13 1998/05/11 04:15:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmd1.c,v 1.14 2000/04/25 16:42:22 millert Exp $";
#endif
#endif /* not lint */
@@ -490,6 +490,7 @@ inc(v)
} else if (nmsg > 0) {
mdot = newfileinfo(msgCount - nmsg);
dot = &message[mdot - 1];
+ clearnew();
} else {
puts("\"inc\" command failed...");
}