diff options
author | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-28 02:40:07 +0000 |
---|---|---|
committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-06-28 02:40:07 +0000 |
commit | dcd24e27784abb5dbf021fa98a2a49b52f87c53e (patch) | |
tree | f3260d4fbd6d3b506ac496a52d8c03cb8602bf8a /usr.bin/mail/mail.1 | |
parent | 6eda157eaa3f7dc35ff109a4981eb4110e530b5d (diff) | |
download | src-dcd24e27784abb5dbf021fa98a2a49b52f87c53e.tar.gz src-dcd24e27784abb5dbf021fa98a2a49b52f87c53e.zip |
Add the -E flag to not send messages that have an empty body. This is
useful for piping cron script error output by mail.
PR: bin/9494
Obtained from: NetBSD
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=78904
Diffstat (limited to 'usr.bin/mail/mail.1')
-rw-r--r-- | usr.bin/mail/mail.1 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1 index ed67cc3b8af3..ddbf34a8c6e1 100644 --- a/usr.bin/mail/mail.1 +++ b/usr.bin/mail/mail.1 @@ -40,7 +40,7 @@ .Nd send and receive mail .Sh SYNOPSIS .Nm -.Op Fl iInv +.Op Fl EiInv .Op Fl s Ar subject .Op Fl c Ar cc-addr .Op Fl b Ar bcc-addr @@ -50,11 +50,11 @@ .Ar sendmail-option ... .Oc .Nm -.Op Fl iInNv +.Op Fl EiInNv .Fl f .Op Ar name .Nm -.Op Fl iInNv +.Op Fl EiInNv .Op Fl u Ar user .Sh INTRODUCTION .Nm Mail @@ -68,6 +68,9 @@ with lines replaced by messages. Verbose mode. The details of delivery are displayed on the user's terminal. +.It Fl E +Don't send messages with an empty body. This is useful +for piping errors from cron scripts. .It Fl i Ignore tty interrupt signals. This is |