MHonArc

 view release on metacpan or  search on metacpan

doc/faq/envs.html  view on Meta::CPAN

www.cruciverb.com
</PRE>
</blockquote>

<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="ezmlm">Can MHonArc process ezmlm archives?</a></b></h3>
</td></tr></table>

<p>From what I read from the <b>ezmlm(5)</b> manpage, the following example
command will process all messages of list:
</p>
<pre class="shell">
prompt&gt; <b>mhonarc <var>/list/archive/</var>[0-9]*</b>
</pre>
<p>Replace "<tt>/list/archive/</tt>" to what is appropriate for your
configuration.
</p>
<p>Basically, each numeric subdirectory in the "<var>archive</var>" directory
follows the same format as MH mail directories.
</p>
<p>If you are using a shell that cannot handle "<tt>[0-9]*</tt>", the following
should work:
</p>
<pre class="shell">
prompt&gt; <b>mhonarc `find <var>/list/archive/</var> -type d -name '[0-9]*' -print`</b>
</pre>
<p>Note, make sure to add any additional options to mhonarc as needed
to get the effects you desire.
</p>

<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="maildir">Can MHonArc process qmail's maildir style mail folders?</a></b></h3>
</td></tr></table>

<p>For simplicity, let "<var>MAILDIR</var>" represent the pathname
to your qmail mail directory.
</p>
<p>To have mhonarc process <var>MAILDIR</var>,
you pass "<var>MAILDIR</var><tt>/cur</tt>" and/or
"<var>MAILDIR</var><tt>/new</tt>" as the mail folder arguments.
Which subdirectory you choose to use depends on your needs.
</p>
<p>Also, you will need to define the MHPATTERN resource to process
all non-dotfiles.  Example:
</p>
<pre class="shell">
prompt&gt; <b>mhonarc -mhpattern '^[^\.]' <var>MAILDIR</var>/cur</b>
</pre>
<p>If all you will ever do is process qmail maildir folders, it may be best
to set the M2H_MHPATTERN environment variable so you do not have
to respecify each time you invoke mhonarc.  Examples:
</p>
<dl>
<dt>csh:
    <dd><b><tt class="ishell">setenv M2H_MHPATTERN '^[^\.]'</tt></b>
<dt>sh:
    <dd><b><tt class="ishell">M2H_MHPATTERN='^[^\.]'; export M2H_MHPATTERN</tt></b>
</dl>

<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="netscape">Can MHonArc process Netscape Messenger folders?</a></b></h3>
</td></tr></table>

<p>Yes.  Each Netscape Messenger folder has a corresponding mailbox file
that stores the raw mail messages for the folder.  The location
of the mailbox file will be in your mail directory.  Under Unix, this
is normally <b><tt>$HOME/nsmail</tt></b>.  For Windows, this is
typically
<b><tt>C:\Program Files\Netscape\Users\<var>&lt;username&gt;</var>\Mail</tt></b>.
</p>

<p>For each Netscape folder, there are two files: 
<b><tt><i>&lt;folder-name&gt;</i></tt></b> and 
<b><tt><i>&lt;folder-name&gt;</i>.summary</tt></b> (or
<b><tt><i>&lt;folder-name&gt;</i>.snm</tt></b> under Windows).
The <b><tt>.summary</tt></b> can be ignored with respect to MHonArc.
The other file contains the raw mail messages and can be passed
directly to MHonArc for processing.  For example, to process all the
mail in your Inbox, do something like the following:
</p>
<pre class="shell">
prompt&gt; <b>mhonarc $HOME/nsmail/Inbox</b>
</pre>

<p>Note, you may need to compress/compact folders in Netscape before
running MHonArc.  If not, messages you have deleted from a folder may
show up in the archive create by MHonArc.
</p>

<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="evolution">Can MHonArc process Evolution folders?</a></b></h3>
</td></tr></table>

<p>Yes.  Each Evolution folder has a corresponding mailbox file
that stores the raw mail messages for the folder.  The location
of the mailbox file will be in your mail directory which is
typically <b><tt>$HOME/evolution/local/<em>folder-name</em></tt></b>.
In the directory is a file called <tt>mbox</tt> which contains
the raw messages that can be passed into MHonArc directly.
</p>

<!-- ??????????????????????????????????????????????????????????????? -->
<hr noshade size=1>
<table border=0>
<tr valign=baseline><td><img src="monicon.png" align="bottom" alt=""></td><td>
<h3><b><a name="compuserve">Can MHonArc process Compuserve messages?</a></b></h3>
</td></tr></table>

<p>Here is a response from a user:



( run in 2.733 seconds using v1.01-cache-2.11-cpan-140bd7fdf52 )