[Table of Contents]


Quick Start

This section will give you a "quick start" on using MHonArc. However, I recommend reading through the entire documentation to take full advantage of all the features of MHonArc.


Converting MH mail folders or Mailbox files

Since MHonArc supports MH mail folders and UUCP/Unix mailbox files, the term "mail folder" will represent the MH mail folder or mailbox file you want to process. To convert your mail folder to an HTML archive, use the following:

% mhonarc path/inbox

Where path represents the path to the directory that contains the mail folder inbox. If you are in the directory that contains inbox, then you can leave out the "path/".

MHonArc prints out messages showing its progress as your e-mail is processed. When MHonArc finishes, the following files will be created:

MHonArc allows you to specify more than one mail folder to process on the command-line.

Example
% mhonarc /home/ehood/mail/inbox1 /home/ehood/mail/inbox2...

All the files created will be put into the current working directory, by default. You can control the destination of the output location by using the -outdir option.

Example
% mhonarc -outdir /home/ehood/htmlarchive /home/ehood/mail/inbox

Here is a sample session converting a mail folder:

% mhonarc ~/mail/inbox
Requiring content filter libraries ...
        mhexternal.pl
        mhtxthtml.pl
        mhtxtplain.pl
        mhtxtsetext.pl
Requiring charset filter libraries ...
        iso8859.pl
Converting messages to .
Reading /mnt/ehood/mail/inbox ..........
Writing mail ...
Writing ./maillist.html ...
Writing ./threads.html ...
Writing database ...
10 messages

Adding Messages to an Archive

If you have new messages you want to add to an existing archive, you must utilizing the -add command-line option. With the -add, you can do the following:

Adding a mail folder to an archive in the current working directory can be done like the following:

% mhonarc -add <path>/mailfolder

If you are not in the same directory as the archive, then you can specify the location of the archive to add to with the -outdir option.

NOTE

MHonArc will skip any messages that already exist in the archive. Therefore, MHonArc can be used to rescan the same mail folder and only convert any new messages it finds.

If no mail folder arguments are specified, then MHonArc will attempt to add a single message read in from standard input.

Example

% mhonarc -add < single.msg

Or, from a pipe:

% cat single.msg | mhonarc -add


Converting a single message

MHonArc has the ability to process a single mail message independent of creating, or modifying, an archive. To convert a single message to HTML use the -single command-line option. The message to process can be specified by a filename on the command-line, or by reading the message from standard input if no file is specified. The filtered message is sent to standard output. All formatting options apply to the single message as with messages being processed for an archive, with the exception of formatting related specificly to archive processing, like index links and mail thread links.

Examples

Input from standard input:

% mhonarc -single < messagefile > file.html

Filename on command-line:

% mhonarc -single messagefile > file.html


[Table of Contents]


97/02/24 11:14:09
MHonArc
Copyright © 1997, Earl Hood, ehood@medusa.acs.uci.edu