summaryrefslogtreecommitdiffabout
path: root/doc/texinfo/programs/comsatd.texi
Side-by-side diff
Diffstat (limited to 'doc/texinfo/programs/comsatd.texi') (more/less context) (ignore whitespace changes)
-rw-r--r--doc/texinfo/programs/comsatd.texi28
1 files changed, 23 insertions, 5 deletions
diff --git a/doc/texinfo/programs/comsatd.texi b/doc/texinfo/programs/comsatd.texi
index 15cbd3d..07fa516 100644
--- a/doc/texinfo/programs/comsatd.texi
+++ b/doc/texinfo/programs/comsatd.texi
@@ -2,14 +2,15 @@
@c Copyright (C) 1999-2019 Free Software Foundation, Inc.
@c See file mailutils.texi for copying conditions.
@comment *******************************************************************
@pindex comsatd
Comsatd is the server which receives reports of incoming mail and
-notifies users, wishing to get this service. It can be started
-either from @file{inetd.conf} or as a standalone daemon.
+notifies users about it. By default, it prints subject, sender
+name and email, followed by first five lines of each newly arrived message
+to the tty of the recipient user. Users can customize this behavior.
@menu
* Starting comsatd:: Invocation.
* Configuring comsatd:: Configuration of @command{comsatd}.
* dot.biffrc:: A per-user configuration file.
@end menu
@@ -30,22 +31,39 @@ The server is started from @file{/etc/inetd.conf} file:
comsat dgram udp wait root /usr/sbin/comsatd \
comsatd -c /etc/comsat.conf
@end example
This is the default operation mode.
-@item -t
-@itemx --test
+@item -t[@var{file}]
+@itemx --test[=@var{file}]
Test mode. In this mode, @command{comsatd} takes two arguments:
@acronym{URL} of a mailbox and @acronym{QID} of the message from that
-mailbox, e.g.:
+mailbox and prints the notification to the current user tty
+(@file{/dev/tty}), or @var{file}, if it is supplied. If the
+@file{~/.biffrc} file exists, it will be used. For example:
@example
$ comsatd --test /var/mail/root 34589
@end example
+Notice, that @var{file} is an optional argument. When supplied, it
+should follow the short option form immediately, or the long option
+form after the equals sign, e.g.:
+
+@example
+$ comsatd --test=logfile /var/mail/root 34589
+@end example
+
+@noindent
+or
+
+@example
+$ comsatd -tlogfile /var/mail/root 34589
+@end example
+
@item --foreground
Don't detach from the controlling terminal, remain in foreground.
@end table
See also @ref{Common Options}.

Return to:

Send suggestions and report system problems to the System administrator.