diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-25 16:42:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-25 16:42:23 +0000 |
commit | 23547d7f01a15aa84cbd62168e6925d262abe0c5 (patch) | |
tree | 2e039b898ad01af6e80d9970bd4a2264ed017750 /usr.bin/mail/cmd3.c | |
parent | 477a76c67b716181e665e202f0f05f930d09716e (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/cmd3.c')
-rw-r--r-- | usr.bin/mail/cmd3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mail/cmd3.c b/usr.bin/mail/cmd3.c index ae8256c3306..f02e27e3eb4 100644 --- a/usr.bin/mail/cmd3.c +++ b/usr.bin/mail/cmd3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd3.c,v 1.10 1997/11/14 00:23:44 millert Exp $ */ +/* $OpenBSD: cmd3.c,v 1.11 2000/04/25 16:42:22 millert Exp $ */ /* $NetBSD: cmd3.c,v 1.8 1997/07/09 05:29:49 mikel Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95"; #else -static char rcsid[] = "$OpenBSD: cmd3.c,v 1.10 1997/11/14 00:23:44 millert Exp $"; +static char rcsid[] = "$OpenBSD: cmd3.c,v 1.11 2000/04/25 16:42:22 millert Exp $"; #endif #endif /* not lint */ @@ -564,6 +564,7 @@ file(v) if (argv[0] == NULL) { newfileinfo(0); + clearnew(); return(0); } if (setfile(*argv) < 0) |