diff options
Diffstat (limited to 'doc/texinfo/programs/comsatd.texi')
-rw-r--r-- | doc/texinfo/programs/comsatd.texi | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/doc/texinfo/programs/comsatd.texi b/doc/texinfo/programs/comsatd.texi index 15cbd3d0b..07fa516a0 100644 --- a/doc/texinfo/programs/comsatd.texi +++ b/doc/texinfo/programs/comsatd.texi @@ -1,21 +1,22 @@ @c This is part of the GNU Mailutils manual. @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 @node Starting comsatd @subsection Starting @command{comsatd} @table @option @item -d @@ -24,34 +25,51 @@ Run as a standalone daemon. @item -i @itemx --inetd The server is started from @file{/etc/inetd.conf} file: @example 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}. @node Configuring comsatd @subsection Configuring @command{comsatd} Following configuration statements affect the behavior of @command{comsatd}: |