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