<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML//EN">
<title>MHonArc Resources: ADD
</title>
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">
</td><td><nobr>[
<a href=
"../resources.html#add">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"addressmodifycode.html">ADDRESSMODIFYCODE
</a>]
</td></tr></table>
<!-- *************************************************************** -->
<dt><strong>Envariable
</strong></dt>
<dt><strong>Element
</strong></dt>
<dt><strong>Command-line Option
</strong></dt>
<code>-add
</code><var>folder1
</var> ...
<br>
<code>-add
< </code><var>single-message
</var>
<!-- *************************************************************** -->
<p>The ADD resource instructs
<em>MHonArc
</em> to add messages
to an existing archive. The archive specified does not exist,
<em>MHonArc
</em> will automatically create the archive. If input
is coming from standard in, then the input is treated as a single
message to add to the archive.
<table border=
0 cellpadding=
4>
<td><strong><font color=red
>CAUTION
</font></strong></td>
<td><p>If ADD is specified, and no archive currently exists, make
sure there is no
<b><tt>maillist.html
</tt></b> file (or the filename
specified by
<a href=
"idxfname.html">IDXFNAME
</a> resource) in
the destination directory. This can may cause the main index to
be incorrect. If this happens, remove
<tt>maillist.html
</tt> and
use
<a href=
"editidx.html">EDITIDX
</a> to regenerate archive pages.
<p>When adding,
<em>MHonArc
</em> will skip any messages that
already exists in the archive. This allows one to have
<em>MHonArc
</em>
rescan a mail folder only add any new messages found.
<table border=
0 cellpadding=
4>
<td><strong>NOTE
</strong></td>
<td><p>MHonArc determines duplicate messages by message-ids.
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<h2>Resource Variables
</h2>
<!-- *************************************************************** -->
<p>The following example shows adding a mail folder:
%
<b>mhonarc -outdir /home/ehood/mailarch -add inbox
</b>
<p>The following shows how a single message can be added.
The message comes from the output of the MH
<em>show
</em>
%
<b>show -noshow -noheader | mhonarc -add
</b>
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<p><a href=
"outdir.html">OUTDIR
</a>
<!-- *************************************************************** -->
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">
</td><td><nobr>[
<a href=
"../resources.html#add">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"addressmodifycode.html">ADDRESSMODIFYCODE
</a>]
</td></tr></table>
$Date:
2002/
07/
27 05:
13:
10 $
<br>
<img align=
"top" src=
"../monicon.png" alt=
"">
<a href=
"http://www.mhonarc.org/"><strong>MHonArc
</strong></a><br>
Copyright
© 1997-
1998,
<a href=
"http://www.earlhood.com/">Earl Hood
</a>,
<a href=
"mailto:mhonarc@mhonarc.org">mhonarc@mhonarc.org
</a><br>