mharc-users

Re: mharc/mhonarc -- adding missing stuff to archives:

2004-02-04 12:44:35
On February 3, 2004 at 23:12, someone wrote:

   My server was off-line for approximately 30 hours and failed to receive
a bunch of messages from the list near the end of Jan.  I isolated the
messages from the actual list archives and set them up in a file.

   The only way I have been able to get those messages included was to use
the following commands:

~/archives/bin/filter-spool -mail <file with messages>
~/archives/bin/web-archive -rebuild

The rebuild should not be required, since any new messages will be
detected automatically via the mharc's cron processes.

For importing messages, all you need to do is get them into the
proper archive period mbox files.  One trick is to dump all the
messages into $SW_ROOT/.newmail (in UUCP mbox format), and let
mharc automatically do the rest when cron invokes mharc's scripts.

CAUTION: Make sure that the mbox files they will get put into are
not compressed.  I.e.  If the messages are really old, the period
mbox files may have been compressed.  You will need to uncompress
first since mharc does not detect this.  If you do not, you will
get something like:

  2003-12
  2003-12.gz

Also, make sure that when you dump the messages into $SW_ROOT/.newmail,
no mharc processes are running.  For administrative tasks like this,
I typically do

  make disable

And then

  ps -fu <mharc-account-username>

To see if any scripts are running.  Once you confirm no scripts are
running, perform your needed administrative tasks.  Then, once done, do

  make enable

to get automatic archive processing re-enabled.

An alternative import method is to use the mbox-month-pack (or
mh-month-pack) scripts to import the messages directly into the raw
mbox archives.  Again, make sure targeted archive mbox files are
uncompressed before using the script.  The scripts are document
under "Tool Docs" of the mharc documentation.

Another alternative: if you know all the messages are from a single
period and for a single list and in mbox format, just append the data
to the proper archive mbox file.  For example, if all the messages
are for 2004-01, something like the following can be done:

  cat mesgs-to-import.mbox >> $SW_ROOT/mbox/list-name/2004-01

where $SW_ROOT is the path to your mharc installation and
"list-name" is the name of archive the messages belong to.
If the messages are for multiple archives, you will need to
use the .newmail or mbox-month-pack methods instead.

--ewh

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS

<Prev in Thread] Current Thread [Next in Thread>
  • Re: mharc/mhonarc -- adding missing stuff to archives:, Earl Hood <=