MAIL.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:2k
- .TH MAIL 1
- .SH NAME
- mail - send and receive electronic mail
- .SH SYNOPSIS
- fBmailfR [fB-dpqrvfR]fR [fB-f fIfilefR] [fIuserfR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-d" "Force use of the shell variable fIMAILERfR"
- .FL "-f" "Use fIfilefR instead of fI/usr/spool/mail/userfR as mailbox"
- .FL "-p" "Print all mail and then exit"
- .FL "-q" "Quit program if SIGINT received"
- .FL "-r" "Reverse print order, i.e., print oldest first"
- .FL "-v" "Verbose mode"
- .SH EXAMPLES
- .EX "mail ast" "Send a message to fIastfR"
- .EX "mail" "Read your mail"
- .SH DESCRIPTION
- .PP
- fIMailfR is an extremely simple electronic mail program. It can be used
- to send or receive email on a single
- s-2MINIXs+2
- system, in which case it functions
- as user agent and local delivery agent.
- If the flag fIMAILERfR is defined in fImail.cfR,
- it can also call a trans%port agent to handle remote mail as well.
- No such agent is supplied with
- s-2MINIXs+2.
- .PP
- When called by fIuserfR with no arguments, it examines the mailbox
- fI/usr/spool/mail/userfR, prints one message (depending on the fB-rfR
- flag), and waits for one of the following commands:
- .PP
- .nf
- .ta 0.25i 1.25i
- <newline> Go to the next message
- - Print the previous message
- !command Fork off a shell and execute fIcommandfR
- CTRL-D Update the mailbox and quit (same as q)
- d Delete the current message and go to the next one
- q Update the mailbox and quit (same as CTRL-D)
- p Print the current message again
- s [fIfilefR] Save message in the named file
- x Exit without updating the mailbox
- .PP
- .PP
- To send mail, the program is called with the name of the recipient as an
- argument. The mail is sent, along with a postmark line containing the date.
- For local delivery, a file named after the recipient in the directory
- fI/usr/spool/mailfR must be writable.
- .PP
- If the directory fI/usr/spool/mailfR does not exist then the mail is
- dumped on the console, so that system programs have a way to notify
- a user on a system that does not have a mail spool.