summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1999-11-08 03:54:37 +0000
committerjkoshy <jkoshy@FreeBSD.org>1999-11-08 03:54:37 +0000
commit8d9b08ce74c44877df5cffc86df9ec38db7a2f1b (patch)
treed6bc08d2c99eac8dbed4dd89c575a4aa7576f462 /usr.bin/mail
parent4cd2b5b992572f267f8046fd398a4bc00fdb562e (diff)
downloadFreeBSD-src-8d9b08ce74c44877df5cffc86df9ec38db7a2f1b.zip
FreeBSD-src-8d9b08ce74c44877df5cffc86df9ec38db7a2f1b.tar.gz
Document startup behaviour of mail(1).
PR: docs/1577 Submitted by: Joseph Koshy <koshy@india.hp.com>
Diffstat (limited to 'usr.bin/mail')
-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 7109ef4..a76a190 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
OpenPOWER on IntegriCloud