From 3eb61de0e7f6b249668975bd27ca690a284de88e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 25 Apr 1998 00:41:55 +0000 Subject: doc startup behaviour; koshy@india.hp.com --- usr.bin/mail/mail.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1 index fd2ea40dd82..a6d92b0fc66 100644 --- a/usr.bin/mail/mail.1 +++ b/usr.bin/mail/mail.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mail.1,v 1.9 1998/04/25 00:19:55 deraadt Exp $ +.\" $OpenBSD: mail.1,v 1.10 1998/04/25 00:41:54 deraadt Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -115,6 +115,23 @@ Is equivalent to: .Pp .Dl mail -f /var/mail/user .El +.Ss Startup actions +At startup time +.Nm mail +will execute commands in the system command files +.Pa /usr/share/misc/mail.rc , +.Pa /usr/local/etc/mail.rc , +and +.Pa /etc/mail.rc +in order unless explicitly told not to by using the +.Fl n +option. Next, the commands in the users personal command file +.Pa ~/.mailrc +are executed. +.Nm mail +then examines its command line options to determine whether the user +requested a new message to be sent or existing messages in a mailbox +to be examined. .Ss Sending mail To send a message to one or more people, .Nm mail -- cgit v1.2.3