aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail/mail.1
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2004-02-29 20:44:44 +0000
committerMike Heffner <mikeh@FreeBSD.org>2004-02-29 20:44:44 +0000
commitc92dfc231b25d5a31c652408ccabca73d7ebc506 (patch)
tree504aca9a1fd911180e61a965ba10728d59f52cbd /usr.bin/mail/mail.1
parent16c36bbe5db52e7c26fc7506c13439107f046d7a (diff)
Add the -e (mail presence test), -H (header summary mode), and -F
(message save as first recipient) options for standards conformance. Submitted by: Wartan Hachaturow <wart@tepkom.ru> (with some changes) PR: standards/61934
Notes
Notes: svn path=/head/; revision=126415
Diffstat (limited to 'usr.bin/mail/mail.1')
-rw-r--r--usr.bin/mail/mail.128
1 files changed, 26 insertions, 2 deletions
diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1
index 9d3a7c6dcf71..2cfb07869e97 100644
--- a/usr.bin/mail/mail.1
+++ b/usr.bin/mail/mail.1
@@ -46,15 +46,23 @@
.Op Fl s Ar subject
.Op Fl c Ar cc-addr
.Op Fl b Ar bcc-addr
+.Op Fl F
.Ar to-addr ...
.Op Fl Ar sendmail-option ...
.Nm
-.Op Fl EiInNv
+.Op Fl EHiInNv
+.Op Fl F
.Fl f
.Op Ar name
.Nm
-.Op Fl EiInNv
+.Op Fl EHiInNv
+.Op Fl F
.Op Fl u Ar user
+.Nm
+.Fl e
+.Op Fl f Ar name
+.Nm
+.Op Fl H
.Sh INTRODUCTION
The
.Nm
@@ -69,6 +77,13 @@ The following options are available:
Verbose mode.
The details of
delivery are displayed on the user's terminal.
+.It Fl e
+Test for the presence of mail in the (by default, system)
+mailbox. An exit status of 0 is returned if
+it has mail; otherwise, an exit status
+of 1 is returned.
+.It Fl H
+Write a header summary only.
.It Fl E
Do not send messages with an empty body.
This is useful for piping errors from
@@ -126,6 +141,15 @@ for processing; when you
.Ic quit ,
.Nm
writes undeleted messages back to this file.
+.It Fl F
+Record the message in a file named after the first
+recipient. The name is the login-name portion of the
+address found first on the
+.Dq Li To:
+line in the mail header.
+Overrides the
+.Va record
+variable, if set.
.It Fl u
Is equivalent to:
.Pp