1RCVTTY(1) [nmh-1.2-20070115cvs] RCVTTY(1)
2
3
4
6 rcvtty - report new mail
7
9 /usr/libexec/nmh/rcvtty [command] [-form formatfile] [-format string]
10 [-width columns] [-bell | -nobell] [-newline | -nonewline] [-biff]
11 [-version] [-help]
12
14 The rcvtty can be used to report new mail. It is used primarily in
15 conjunction with mail filtering agents such as slocal or procmail.
16
17 The rcvtty program executes the named command with the message as its
18 standard input, and writes the resulting output on your terminal.
19
20 Alternately, if no command is specified (or is bogus), then rcvtty will
21 instead write a one-line scan listing. The default output format of
22 this scan listing may be overridden by using either the -form format‐
23 file or -format string option, similar to the equivalent options for
24 scan and inc. See mh-format(5) for details.
25
26 A newline is output before the message output, and the terminal bell is
27 rung after the output. The -nonewline and -nobell options will inhibit
28 these functions.
29
30 The switch -width columns may be given to specify the width of the scan
31 line. The default is to use the width of the terminal.
32
33 In addition to the standard format escapes described in mh-format(5),
34 rcvtty also recognizes the following additional component escapes:
35
36 Escape Returns Description
37 body string the (compressed) first part of the body
38 dtimenow date the current date
39 folder string the name of the current folder
40
41 By default, rcvtty will send its output to every terminal on the local
42 machine that is owned by current user, and that has given write permis‐
43 sion as granted by the command mesg(1). If the option -biff is given,
44 then rcvtty will obey the notification status set by the command
45 biff(1) instead.
46
47
49 /etc/nmh/mts.conf nmh mts configuration file
50 $HOME/.maildelivery The file controlling local delivery
51 /etc/nmh/maildelivery Rather than the standard file
52
53
55 None
56
57
59 `-width' defaults to the width of the terminal
60 `-newline'
61 `-bell'
62
63
65 rcvdist(1), rcvpack(1), rcvstore(1), mh-format(5), slocal(1)
66
67
69 Only two return codes are meaningful, others should be.
70
71
72
73MH.6.8 1 Jul 2003 RCVTTY(1)