inc Incorporate new message(s) from the system mailbox
into your account (inbox folder). You cannot read
messages until you incorporate them. Setting up
automatic incorporating of messages is explained in
the next section.
inc -fi file Incorporate from file, not from system mailbox
show Display the current message or first message incorporated.
show n Display message n.
next Display the next message
prev Go back to the previous message
comp Compose a message on the screen or using the editor
defined in .mh_profile. Type "send" at "What Now?"
prompt to send the message.
comp -e editor Compose a message using your favourite editor
(override.mh_profile).
send file Send file to the destinations in To:, cc:, Bcc:, Fcc:.
repl Reply to the current message.
forw Forward the current message. The prompter will ask
for recipient's address and subject. If a default
editor is defined in .mh_profile, that editor is invoked.
rmm Delete the current message.
It actually hides the message from MH by renaming the
message file with a leading comma(,) or a hash(#) or
some other character. A system program comes along
later and actually removes the "removed" message.
So, you can recover the "removed" message in the
interim period.
refile +folder Move the current message to the specified folder.
scan +folder Display message headers from the specified folder.
scan last:n Display the last n message header from the current folder.
scan f:n Display n message headers starting from message f.
pick options Select messages by content, date, sender, recipient, etc.
pick -help Display a list of pick options.
rmf +folder Delete the specified folder.
"|/usr/local/bin/mh/fMHNewMail your_directory_path"Then your mail is automatically incorporated for you.
Path: Mail Directory for your MH transactions.
Unseen-Sequence: unseen Name of the unseen sequence of messages.
Draft-folder: drafts Name of the default folder for drafted mail.
Editor: emacs Sets up emacs as editor for comp/repl/forw/dist.
Aliasfile:mh_alias File containing MH aliases (distribution lists).
Signature:John Peoples Your signature. Appears in From: header field.
rmf: -interactive To make sure that rmf always asks you
for confirmation with folder name.
The default template file looks like:
To: cc: Subject:You can add other fields to the header by making your own components file. For example, my components file looks like:
Reply-to:bhat@fnal.gov To: cc: Bcc: Fcc:outbox Subject: -------The Reply-to: field should give the address to which you want your replies to be sent. MH repl command (and some other mail agents as well) automatically set up reply to be sent to this address rather than using From: address. The "blind carbon copy" Bcc: field can be used to send copies of the message to addresses that are not seen by the people specified in To: and cc: fields. This is like forwarding a copy of the message to someone else after sending it, except that here you can do it at the time you send the original message. Bcc: can also use distribution lists or aliases. You can send a copy to yourself by specifying a folder for your copies in the Fcc: field. Fcc stands for folder copy.
The default MH replcomps file in the current version 6.8.3 is given below:
%(lit)%(formataddr %<{reply-to}%?{from}%?{sender}%?{return-path}%>)\
%<(nonnull)%(void(width))%(putaddr To: )\n%>\
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
%<(nonnull)%(void(width))%(putaddr cc: )\n%>\
%<{fcc}Fcc: %{fcc}\n%>\
%<{subject}Subject: Re: %{subject}\n%>\
%<{date}In-reply-to: Your message of "\
%<(nodate{date})%{date}%|%(pretty{date})%>."%<{message-id}
%{message-id}%>\n%>\
--------
The first Two lines build the To: address field for your reply draft. It takes the first available address by searching the Reply to:, From:, Sender: and Return-path: fields in that order. Lines 3 and 4 build a cc: address field by taking all the To: and cc: addresses from the original message and including your address as well. (In exmh however, you can choose before hand as to which addresses you would like to reply to.) It then builds an Fcc: field by testing a -fcc switch on the command line or in the MH profile. The subject: field is taken from the subject in the incoming mail. The last three lines make up the field that says "In-reply-to:Your message of ..." with date and message number at the end. You can customize this formatting by modifying your replcomps.
The forwcomps file is used as the template header for forwarded messages. This file could look very similar to the components file. You can in fact use your components file to be used in place of forwcomps by including the following line in your .mh_profile file.
forw: -form components
Example alias file:
cdheads: butler@fnal.gov,\
nicholls@fnal.gov,\
gaines@fnal.gov
d0spokes: mont@fnal.gov,\
pgrannis@fnal.gov
cdfspokes: carithers@fnal.gov,\
bellettini@fnal.gov
There should not be any blanks after the \ in the aliases. To see your aliases
you can use the command ali. For example if you type ali d0spokes,
you will get the reply: mont@fnal.gov, pgrannis@fnal.gov.
Print a mail message: % show n | flpr -q queue Extract a message into a file: % show n > file Filter message headers: % scan +inbox | grep -i pattern Finding messages with pick: You can find messages sent from someone, sent to someone, on a given date, before or after a date and even search every line of every message in the current folder. You can do for example, % pick -from hefisk -sequence picked This stores a list of message numbers from user HEFISK in the sequence "picked" and tells you how many messages are picked. You can then scan these messages by typing, %scan picked You can search for a string by typing, % pick -subject 'discovery of the Higgs' -sequence higgs
If you have set up exmh (%setup exmh) and your display screen (setenv $DISPLAY "nodename.fnal.gov:n.0"), you can invoke exmh by simply typing exmh. exmh uses the same configuration files as MH. The exmh has three parts to its window. The top part has the folder buttons. The middle part has message headers from the current/selected folder.The bottom part displays the current message. The current folder button will be highlighted. The name and the number of messages in the current folder will be displayed. The header of the current message will have a '+' next to its number and will also be highlighted. The title bars in each of the three parts of the screen will have command or pull-down menu buttons.
In exmh various actions are performed by clicking on the buttons and/or choosing from menu items.