summaryrefslogtreecommitdiff
path: root/usr.bin/mail/quit.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-01-16 05:36:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-01-16 05:36:10 +0000
commite913afeb49c504a109e4bb5f0bbc7413c1f2b7d4 (patch)
treee3f06532bf64681e08848aa1e0b3fd00383cc11d /usr.bin/mail/quit.c
parent86370b96c590d4c80af75091f9238d13ab88f77f (diff)
Changes from Don Beusee:
o escape From line with a leading '>' when needed o only print To: address and Subject lines if actually present o new variable 'allnet' to treat user@foo and user@bar as the same "user" o folders command now takes an optional argument like ls. o new "pipe" (|) command to pipe the message through an arbitrary command o make header display format the same as SunOS 4.1.3 /usr/ucb/mail o tilde commands work regardless of interactive mode. o fix "read: Interrupted system call" error by retrying if EINTR o expanded help file Changes by me: o read the help file via the PAGER as it is now more than 24 lines long
Diffstat (limited to 'usr.bin/mail/quit.c')
-rw-r--r--usr.bin/mail/quit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/quit.c b/usr.bin/mail/quit.c
index 3119f691731..1fe4b088a27 100644
--- a/usr.bin/mail/quit.c
+++ b/usr.bin/mail/quit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quit.c,v 1.13 2000/06/30 16:00:18 millert Exp $ */
+/* $OpenBSD: quit.c,v 1.14 2001/01/16 05:36:09 millert Exp $ */
/* $NetBSD: quit.c,v 1.6 1996/12/28 07:11:07 tls Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: quit.c,v 1.13 2000/06/30 16:00:18 millert Exp $";
+static char rcsid[] = "$OpenBSD: quit.c,v 1.14 2001/01/16 05:36:09 millert Exp $";
#endif
#endif /* not lint */
@@ -108,7 +108,7 @@ quit()
* a message.
*/
- fbuf = Fopen(mailname, "r");
+ fbuf = Fopen(mailname, "r+");
if (fbuf == NULL)
goto newmail;
if (flock(fileno(fbuf), LOCK_EX) == -1) {