From e913afeb49c504a109e4bb5f0bbc7413c1f2b7d4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 16 Jan 2001 05:36:10 +0000 Subject: 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 --- usr.bin/mail/quit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/mail/quit.c') 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) { -- cgit v1.2.3