dp dt Deletes the current message and displays the next
| -n | display the preceding message. If given a numeric argument n, goes to the n'th previous message and displays it.
| next n like + or CR) Goes to the next message in sequence and types it. With an argument
| print p type [n,m, …] t types list of messages
| Print P Type " displays the all headers.
See print, ignore and retain.
| Reply R to originator only
| reply r [n,m, …] respond sends mail to the sender and all recipients of the list of messages. The default message must not be deleted.
| alias [aaaaa[nnnnn[ nnnnn …]]] a With no arguments, displays aliases.
With one argument, displays that alias.
With more than one argument, creates a new alias or changes an old one.
| unalias aaaaa| Takes a list of names defined by alias commands and discards the remembered groups of users which no longer have any significance.
| alternates alt useful if you have accounts on several machines.
Used to inform mail that the listed addresses are really you. When you reply
to messages, mail will not send a copy of the message to any of the addresses listed
on the alternates list. If the alternates command is given with no argument, the current set of alternate names is displayed.
| copy c ,B\ save scommand does the same as save , except that it does not mark
the messages it is used on for deletion when you quit.
Takes a message list and a filename and appends each message in turn to the end of the file. The filename in quotes, followed by the line count and character count is echoed on the user's terminal.
| delete [n,m, …] d Marks list of messages as deleted, which will not be saved in mbox, nor will they be available for most other commands.
| edit [n,m, …] e a list of messages and points the text editor at each one in turn. On
return from the editor, the message is read back in.
| exit (ex or x) ,
xit (x) return to the Shell without modifying the user's system mailbox, his mbox file, or his edit file in -f.
| folders| List the names of the folders in your folder directory.
| folder (fo) | The folder command switches to a new mail file or folder. With no arguments, it tells you which file you are currently reading. If you give it an argument, it will
write out changes (such as deletions) you have made in the current file and read in
the new file. Some special conventions are recognized for the name. # means the pre-
vious file, % means your system mailbox, %user means user's system mailbox, & means
your mbox file, and +folder means a file in your folder directory.
| file (fi) | The same as folder.
| from (f) | Takes a list of messages and displays their message headers.
| headers| (h) Lists the current range of headers, which is an 18-message group. If a '+' argument is given, then the next 18-message group is display, and if a '-' argument is given, the previous 18-message group is displayed.
| hold,(ho) preserve (pre)Takes a message list and marks each message therein to be saved in the user's system mailbox instead of in mbox. Does not override the delete command.
| ignore | Add the list of header fields named to the ignored list. Header fields in the ignore
list are not displayed on your terminal when you displaye a message. This command is very
handy for suppression of certain machine-generated header fields. The Type and Print
commands can be used to display a message in its entirety, including ignored fields. If
ignore is executed with no arguments, it lists the current set of ignored fields.
| mail (m)| Takes as argument login names and distribution group names and sends mail to those
people.
| mbox | Indicate that a list of messages be sent to mbox in your home directory when you quit.
This is the default action for messages if you do not have the hold option set.
list, types the next matching message.
| chdir (c) | Changes the current directory to that specified, if given. If no directory is given, then changes to the user's login directory.
| quit (q) | Terminates the session, saving all undeleted, unsaved messages in the user's mbox
file in his login directory, preserving all messages marked with hold or preserve or
never referenced in his system mailbox, and removing all other messages from his sys-
tem mailbox. If new mail has arrived during the session, the message "You have new
mail" is given. If given while editing a mailbox file with the -f flag, then the ] ]
quit (q) Terminates the session, saving all undeleted, unsaved messages in the user's mbox
file in his login directory, preserving all messages marked with hold or preserve or
never referenced in his system mailbox, and removing all other messages from his sys-
tem mailbox. If new mail has arrived during the session, the message "You have new
mail" is given. If given while editing a mailbox file with the -f flag, then the edit
file is rewritten. A return to the Shell is effected, unless the rewrite of edit file
fails, in which case the user can escape with the exit command.
| retain | Add the list of header fields named to the retained list Only the header fields in the
retain list are shown on your terminal when you print a message. All other header
fields are suppressed. The Type and Print commands can be used to print a message in
its entirety. If retain is executed with no arguments, it lists the current set of
retained fields.
| set (se) W| ith no arguments, prints all variable values. Otherwise, sets option. Argu-
ments are of the form option=value (no space before or after =) or option. Quotation
marks may be placed around any part of the assignment statement to quote blanks or
tabs, i.e. "set indentprefix="->""
| saveignore|
Saveignore is to save what ignore is to print and type. Header fields thus marked are
filtered out when saving a message by save or when automatically saving to mbox.
| saveretain|
Saveretain is to save what retain is to print and type. Header fields thus marked are
the only ones saved with a message when saving by save or when automatically saving to
mbox. Saveretain overrides saveignore.
| write (w) | Similar to save, except that only the message body (without) the header) is saved.
| ! | Executes the shell (see sh(1) and csh(1)) command which follows.
| shell (sh) | Invokes an interactive version of the shell.
| size | Takes a message list and prints out the size in characters of each message.
| source | reads commands from a file.
| top | Takes a message list and prints the top few lines of each. The number of lines
printed is controlled by the variable toplines and defaults to five.
| undelete|
(u) Takes a message list and marks each message as not being deleted.
| unread (U) | Takes a message list and marks each message as not having been read.
| unset | Takes a list of option names and discards their remembered values; the inverse of set.
| visual (v) | Takes a message list and invokes the display editor on each message.
Extremely useful for such tasks as sending and receiving source program text over the
message system.
| z | Mail presents message headers in windowfuls as described under the headers command.
You can move mail's attention forward to the next window with the z command. Also,
you can move to the previous window by using z-.
| help , ? displays helpful explaination
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |