xref: /original-bsd/old/berknet/netmail.1 (revision f71cd02e)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)netmail.1 6.1 (Berkeley) 04/29/85

NETMAIL 1 "04/29/85"
C 4
NAME
netmail - read mail on a remote machine over the network
SYNOPSIS
netmail [ -l username ] [ -p password ] [ -c ] [ -q ] [ -n ] [ -f ] [ machine:username ]
DESCRIPTION
Mail is checked and/or read on the specified machine. If the machine specification is omitted, the default machine is used. The command has two distinct modes depending on whether the -c option is specified.

If -c is specified, the presence of mail is checked on the remote machine. No password is required so it can be put in C shell `.netrc' file. A message is written or mailed back (see net (\*s)) if there is or is not any unread mail.

If the -c option is not specified, mail is read and mailed back to the user. A password is required. Mail is also appended to the remote file `mbox' as a precaution.

The -q option suppresses the message sent back if there is no mail. The options -l, -p, -f, and -n behave exactly as in net (\*s). (The login name can be specified either with the -l option or by `machine:username'.)

Netmail executes the net (\*s) command.

Examples:

" netmail -c X:uname" 30
checks if there is mail for `uname' on the X machine, no password required.
" netmail X:uname" 30
reads mail for `uname' on the X machine, mails it back, password is required.
AUTHOR
Eric Schmidt
"SEE ALSO"
net(\*s), netrm(\*s), netq(\*s), netlog(\*s), netcp(\*s), netlpr(\*s), netlogin(\*s), mail(\*o)
BUGS