Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
64ba305f
...
64ba305f21578e69832ab95153334480bfcaaecf
authored
2006-12-29 13:13:52 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(Mail Variables): Document nullbody and nullbodymsg
1 parent
751c11c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
doc/texinfo/programs.texi
doc/texinfo/programs.texi
View file @
64ba305
...
...
@@ -2099,6 +2099,41 @@ be included in the group.
Setting this variable does not affect the operation mode of the program.
@item nullbody
@* Type: Boolean
@* Default: True
@vrindex nullbody, mail variable
Controls whether @command{mail} accepts messages with an empty
body. The default value, @code{true}, means such messages are sent,
and a warning (traditionally saying @samp{Null message body; hope
that's ok}) is displayed. The text of the warning can be set using
@code{nullbodymsg} variable (see below).
If @code{nullbody} is unset, @command{mail} will silently ignore such
messages. This can be useful in @file{crontab} files, to avoid sending
mails when nothing important happens. For example, the @file{crontab}
entry below will send mail only if the utility @command{some-prog}
outputs something on its standard output or error:
@smallexample
@group
*/5 * * * * some-prog 2>&1 | \
/bin/mail -E'set nonullbody' -s 'Periodic synchronization'
@end group
@end smallexample
@item nullbodymsg
@*Type: String
@*Default: Null message body; hope that's ok
@vrindex nullbodymsg
Keeps the text of the warning, displayed by @command{mail} before
sending an empty message. When available, the translation of
this text, in accordance with the current locale, is displayed.
Unsetting this variable disables the warning.
@item outfolder
@*Type: String.
@*Default: Unset.
...
...
Please
register
or
sign in
to post a comment