BSD 4_1_snap development
[unix-history] / usr / man / man1 / netmail.1
CommitLineData
e3758c96
C
1.TH NETMAIL 1 2/6/80
2.UC 4
3.ds s 1
4.ds o 1
5.SH NAME
6netmail \- read mail on a remote machine over the network
7.SH SYNOPSIS
8.B netmail
9[
10.B \-l
11username ] [
12.B \-p
13password ] [
14.B \-c
15] [
16.B \-q
17] [
18.B \-n
19] [
20.B \-f
21] [ machine:username ]
22.SH DESCRIPTION
23Mail is checked and/or read on the specified
24.I machine.
25If the machine specification is omitted, the default machine is used.
26The command has two distinct modes depending on whether the
27.B \-c
28option is specified.
29.PP
30If
31.B \-c
32is specified, the presence of mail is checked on the remote machine.
33No password is required so it can be put in C shell `.netrc' file.
34A message is written or mailed back (see
35.IR net (\*s))
36if there is or is not any unread mail.
37.PP
38If the
39.B \-c
40option is not specified, mail is read and mailed back to the user.
41A password is required.
42Mail is also appended to the remote file
43.I `mbox'
44as a precaution.
45.PP
46The
47.B \-q
48option suppresses the message sent back if there is no mail.
49The options
50.B \-l,
51.B \-p,
52.B \-f,
53and
54.B \-n
55behave exactly as in
56.IR net (\*s).
57(The login name can be specified either with the
58.B \-l
59option or by `machine:username'.)
60.PP
61.I Netmail
62executes the
63.IR net (\*s)
64command.
65.PP
66Examples:
67.IP " netmail\ \-c\ X:uname" 30
68checks if there is mail for `uname' on the X machine, no password required.
69.IP " netmail\ X:uname" 30
70reads mail for `uname' on the X machine, mails it back, password is required.
71.SH AUTHOR
72Eric Schmidt
73.SH "SEE ALSO"
74net(\*s), netrm(\*s), netq(\*s), netlog(\*s), netcp(\*s),
75netlpr(\*s), netlogin(\*s), mail(\*o)
76.SH BUGS