summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-25 00:41:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-25 00:41:55 +0000
commit3eb61de0e7f6b249668975bd27ca690a284de88e (patch)
treeb49ba22f072e9cfa9d62042a38d5f488364c51c7
parent834914931717e38e7c2a30c1485f1c2834e70fec (diff)
doc startup behaviour; koshy@india.hp.com
-rw-r--r--usr.bin/mail/mail.119
1 files changed, 18 insertions, 1 deletions
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