username@somemachine.domain
From: mbida@mail.mhpcc.edu Message-Id: <9502232348.AA127930@kanaha.mhpcc.edu> Subject: 400-way upgrade plan To: systems@mail.mhpcc.edu, services@mail.mhpcc.edu Date: Thu, 23 Feb 1995 13:48:50 -1000 (HST)
mail username@address
Subject: Meeting tomorrow at 1:00
Control Commands: CTRL-D - Send message ~q - Quit editor without saving or sending message ~p - Display the contents of the message buffer ~? - Display help ~:set - Show which mail options are in effect Add to Heading: ~h - Add to lists for To: Subject: Cc: and Bcc: ~t addrlist - Add user addresses in addrlist to the To: list ~s subject - Set the Subject: line to the string specified by Subject ~c addrlist - Add user addresses in addrlist to Cc: list ~b addrlist - Add user addresses in addrlist to Bcc: list Add to Message: ~d - Append contents of dead.letter to message ~r filename - Append contents of filename to the message ~f numlist - Append contents of message numbers in numlist ~m numlist - Append/indent contents of message numbers in numlist Change Message: ~e - Edit the message using an external editor (default is e) ~v - Edit the message using an external editor (default is vi) ~w filename - Write the message to filename ~! command - Start a shell, run command, and return to the editor. ~| command - Pipe the message to standard input of command; REPLACE the message with the standard output from that command.
~:set EDITOR=/local/bin/pico - first specify the editor of choice ~e - then invoke it
mail jwwilliams@ibm.vnet.com < asia.report
> 1 pegwms@mhpcc.edu Wed Oct 26 14:49 94/3378 "Suggestions" 2 tfahey@mhpcc.edu Wed Feb 15 12:17 94/3308 "netfind" 3 lwaters@mhpcc.edu Wed Feb 15 16:27 29/916 "URL" 4 colek@mhpcc.edu Wed Feb 15 10:08 46/1784 "New Employees" 5 bob@soest.hawaii.edu Thu Feb 16 09:11 83/2868 "Images" N 6 colek@mhpcc.edu Fri Feb 17 08:33 30/1166 "Fill Out Form" N 7 tfahey@mhpcc.edu Fri Feb 17 09:01 48/1584 "Getting Started" N 8 pegwms@mhpcc.edu Fri Feb 17 17:34 121/5011 "HPC Asia '95" N 9 lijewski@HK.Super.NET Fri Feb 17 23:52 30/1229 "hi from HK" &In the above example, note that:
Control Commands: q - Quit - apply mailbox commands entered this session x - Quit - restore mailbox to original state ! cmd - Start a shell, run cmd, return to mailbox cd dir - Change directory to dir or $HOME a - Display list of aliases with addresses ? - Display help set - Show which mail options are in effect folder filename - Make filename the current mail folder - Display Commands: Return key - Display current message t - Display current message t msg_list - Display messages in msg_list n - Display next message f msg_list - Display headings of messages in msg_list h - Display headings or all messages - Message Handling: e num - Edit message num (default editor is e) v num - Edit message num using vi editor d msg_list - Delete messages in msg_list or current message u msg_list - Recall deleted messages s msg_list file - Append messages (with headings) to file w msg_list file - Append messages (text only) to file pre msg_list - Keep messages in system mailbox - Creating New Mail: m addrlist - Create/send new message to addresses in addrlist r msg_list - Send reply to senders and recipients of messages R msg_list - Send reply only to senders of messages
s jsmith - Save current message to file jsmith in current directory s 1-4 projects - Save messages 1 thru 4 to file projects in current directory s 2 4 5 Mail/old/paul - Save messages 2,4,5 to file Mail/old/paul
mail -f projects
folder jsmith
setenv folder Mail/folders
s +projects mail -f +projects folder +projects
/usr/lib/Mail.rc
Variable Action -------- ----------------------------- alias name address - Creates an alias for a mail address ask - Prompts for the subject of each message sent askcc - Prompts for carbon copy mail addresses crt=lines - Defines the number of lines of a mail message the Mail program displays before pausing for input. Works with PAGER. EDITOR=editor - Gives the full path name of the editor to be started with the e mailbox subcommand or the ~e mail editor subcommand. folder=directory - Directory to save mail files in. hold - Keep messages that have been read in the system mailbox, not the mbox file. ignore fieldlist - Specifies which header fields to not display(ignore) keepsave - do not delete messages that have been saved. Keep them in the system mailbox. Use with the hold option. nosave - Prevents retention of interrupted letters in the $HOME/dead.letter file. PAGER - the pager used to paginate output when a message is longer than the screen. Works with "crt" setting. record=fileName - Defines a file in which to record outgoing mail. screen=lines - Defines the number of lines of message headers displayed before pausing for input. topline=number - the number of lines of the top of each message to print with the ~t command. VISUAL=editor - the name of the editor called by the ~v command. Editor is given as a full pathname.
# Simple .mailrc file # set ask askcc EDITOR=/source/local/bin/pico folder=Mail set PAGER=more crt=20
Alternately, you can open pine directly into the email composer by using the command "pine user@address". An example of pine's email composer screen appears here.
This concludes the tutorial. Return to the Table of Contents