aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail/mail.1
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>1999-11-08 03:54:37 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>1999-11-08 03:54:37 +0000
commit727c14404a0ae7b9fc75b3d7ef8364f8ddf3975c (patch)
treed6bc08d2c99eac8dbed4dd89c575a4aa7576f462 /usr.bin/mail/mail.1
parent1949905f8bf988b5a04f6e501d4bb810a9607ced (diff)
downloadsrc-727c14404a0ae7b9fc75b3d7ef8364f8ddf3975c.tar.gz
src-727c14404a0ae7b9fc75b3d7ef8364f8ddf3975c.zip
Document startup behaviour of mail(1).
PR: docs/1577 Submitted by: Joseph Koshy <koshy@india.hp.com>
Notes
Notes: svn path=/head/; revision=52989
Diffstat (limited to 'usr.bin/mail/mail.1')
-rw-r--r--usr.bin/mail/mail.118
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1
index 7109ef44ab2a..a76a19096a1c 100644
--- a/usr.bin/mail/mail.1
+++ b/usr.bin/mail/mail.1
@@ -112,6 +112,24 @@ Is equivalent to:
.Pp
.Dl mail -f /var/mail/user
.El
+.Ss Startup actions
+At startup time
+.Nm
+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 the use of the
+.Fl n
+option.
+Next, the commands in the user's personal command file
+.Pa ~/.mailrc
+are executed.
+.Nm
+then examines its command line options to determine whether a
+new message is to be sent, or whether an existing mailbox is to
+be read.
.Ss Sending mail
To send a message to one or more people,
.Nm mail