RCVTTY(%manext1%)

NAME
rcvtty - report new mail

SYNOPSIS
%libdir%/rcvtty [command]
[-form formatfile] [-format string] [-bell] [-nobell]
[-newline] [-nonewline] [-biff] [-version] [-help]

DESCRIPTION
The rcvtty program executes the named file with the message as its standard input, and writes the resulting output on your terminal. If no file is specified, or is bogus, etc., then rcvtty will instead write a one-line scan listing. Either the `-form formatfile' or `-format string' option may be used to override the default output format (see mh-format (5)). A newline is output before the message output, and the terminal bell is rung after the output. The `-nonewline' and `-nobell' options will inhibit these functions. In addition to the standard mh-format (5) escapes, rcvtty also recognizes the following additional component escapes:

Escape	Returns	Description
body	string	the (compressed) first part of the body
dtimenow	date	the current date
folder	string	the name of the current folder
Normally, rcvtty obeys write permission as granted by mesg (1). With the `-biff' option, rcvtty will obey the notification status set by biff (1) instead. If the terminal access daemon (TTYD) is available on your system, then rcvtty will give its output to the daemon for output instead of writing on the user's terminal. ^%etcdir%/mts.conf~^nmh mts configuration file ^$HOME/.maildelivery~^The file controlling local delivery ^%etcdir%/maildelivery~^Rather than the standard file rcvdist(1), rcvpack(1), rcvstore(1), mh-format(5), slocal(1) Only two return codes are meaningful, others should be.