new copyright; att/bsd/shared
[unix-history] / usr / src / usr.bin / mail / USD.doc / mail6.nr
CommitLineData
ff262511
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
e2a9a8d6 3.\"
ff262511
KB
4.\" %sccs.include.redist.roff%
5.\"
6.\" @(#)mail6.nr 6.3 (Berkeley) %G%
e2a9a8d6 7.\"
ce60a2e6
KD
8.bp
9.sh 1 "Command line options"
10.pp
11This section describes command line options for
12.i Mail
13and what they are used for.
14.ip \-N
15Suppress the initial printing of headers.
16.ip \-d
17Turn on debugging information. Not of general interest.
8c80966d 18.ip "\-f file\ \ "
ce60a2e6
KD
19Show the messages in
20.i file
21instead of your system mailbox. If
22.i file
23is omitted,
24.i Mail
25reads
26.i mbox
27in your home directory.
28.ip \-i
29Ignore tty interrupt signals. Useful on noisy phone lines, which
30generate spurious RUBOUT or DELETE characters. It's usually
31more effective to change your interrupt character to control\-c,
32for which see the
33.i stty
34shell command.
35.ip \-n
36Inhibit reading of /usr/lib/Mail.rc. Not generally useful, since
37/usr/lib/Mail.rc is usually empty.
38.ip "\-s string"
39Used for sending mail.
40.i String
41is used as the subject of the message being composed. If
42.i string
43contains blanks, you must surround it with quote marks.
44.ip "\-u name"
45Read
46.i names's
47mail instead of your own. Unwitting others often neglect to protect
48their mailboxes, but discretion is advised. Essentially,
49.b "\-u user"
50is a shorthand way of doing
8c80966d 51.b "\-f /usr/spool/mail/user".
ce60a2e6
KD
52.ip "\-v"
53Use the
54.b \-v
55flag when invoking sendmail. This feature may also be enabled
56by setting the the option "verbose".
57.pp
58The following command line flags are also recognized, but are
59intended for use by programs invoking
60.i Mail
61and not for people.
62.ip "\-T file"
63Arrange to print on
64.i file
65the contents of the
66.i article-id
67fields of all messages that were either read or deleted.
68.b \-T
69is for the
70.i readnews
71program and should NOT be used for reading your mail.
72.ip "\-h number"
73Pass on hop count information.
74.i Mail
75will take the number, increment it, and pass it with
76.b \-h
77to the mail delivery system.
78.b \-h
79only has effect when sending mail and is used for network mail
80forwarding.
81.ip "\-r name"
82Used for network mail forwarding: interpret
83.i name
84as the sender of the message. The
85.i name
86and
87.b \-r
88are simply sent along to the mail delivery system. Also,
89.i Mail
90will wait for the message to be sent and return the exit status.
91Also restricts formatting of message.
92.pp
93Note that
94.b \-h
95and
96.b \-r ,
97which are for network mail forwarding, are not used in practice
98since mail forwarding is now handled separately. They may
99disappear soon.