BSD 4_3_Net_2 release
[unix-history] / usr / src / share / doc / usd / 07.Mail / mail6.nr
CommitLineData
ff262511
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
e2a9a8d6 3.\"
af359dea
C
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
ff262511 19.\"
af359dea
C
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mail6.nr 6.3 (Berkeley) 4/17/91
e2a9a8d6 33.\"
ce60a2e6
KD
34.bp
35.sh 1 "Command line options"
36.pp
37This section describes command line options for
38.i Mail
39and what they are used for.
40.ip \-N
41Suppress the initial printing of headers.
42.ip \-d
43Turn on debugging information. Not of general interest.
8c80966d 44.ip "\-f file\ \ "
ce60a2e6
KD
45Show the messages in
46.i file
47instead of your system mailbox. If
48.i file
49is omitted,
50.i Mail
51reads
52.i mbox
53in your home directory.
54.ip \-i
55Ignore tty interrupt signals. Useful on noisy phone lines, which
56generate spurious RUBOUT or DELETE characters. It's usually
57more effective to change your interrupt character to control\-c,
58for which see the
59.i stty
60shell command.
61.ip \-n
62Inhibit reading of /usr/lib/Mail.rc. Not generally useful, since
63/usr/lib/Mail.rc is usually empty.
64.ip "\-s string"
65Used for sending mail.
66.i String
67is used as the subject of the message being composed. If
68.i string
69contains blanks, you must surround it with quote marks.
70.ip "\-u name"
71Read
72.i names's
73mail instead of your own. Unwitting others often neglect to protect
74their mailboxes, but discretion is advised. Essentially,
75.b "\-u user"
76is a shorthand way of doing
8c80966d 77.b "\-f /usr/spool/mail/user".
ce60a2e6
KD
78.ip "\-v"
79Use the
80.b \-v
81flag when invoking sendmail. This feature may also be enabled
82by setting the the option "verbose".
83.pp
84The following command line flags are also recognized, but are
85intended for use by programs invoking
86.i Mail
87and not for people.
88.ip "\-T file"
89Arrange to print on
90.i file
91the contents of the
92.i article-id
93fields of all messages that were either read or deleted.
94.b \-T
95is for the
96.i readnews
97program and should NOT be used for reading your mail.
98.ip "\-h number"
99Pass on hop count information.
100.i Mail
101will take the number, increment it, and pass it with
102.b \-h
103to the mail delivery system.
104.b \-h
105only has effect when sending mail and is used for network mail
106forwarding.
107.ip "\-r name"
108Used for network mail forwarding: interpret
109.i name
110as the sender of the message. The
111.i name
112and
113.b \-r
114are simply sent along to the mail delivery system. Also,
115.i Mail
116will wait for the message to be sent and return the exit status.
117Also restricts formatting of message.
118.pp
119Note that
120.b \-h
121and
122.b \-r ,
123which are for network mail forwarding, are not used in practice
124since mail forwarding is now handled separately. They may
125disappear soon.