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