mhonarc-users

Re: consolidating old mail

1996-11-13 05:42:16
benjamin grosser said:
HI there,

I'm very new to mhonarc (loving it).  My question is:

Is there a method built-in to mhonarc to automatically take older
mail (say from last month or whatever) out of the current index
and thread list, and move it to another directory, file or whatever?

No.

You've seen what I mean...Archive sites often only list the most
current notes on the index and then archive them into other files
based on date or whatever.  This way you don't keep making your index
file bigger and bigger until its HUGE (thousands).

Mhonarc V2.0 alpha provides a bit easier handling of big archives with
the new multipage indexes.

I could do this manually once a month, or write a script (would 
rather not if I don't have to), so I thought I'd check and see if its
built-in first.  DIdn't find anything in the documentation about it.

An (approximate) solution with not too much coding would be to use
a mail filter (like procmail).  Each mail send to the list is archived
in an mbox on a ,e.g., monthly basis).  Additionally pipe the mail to
mhonarc and use the switches -maxsize #  -outdir last#  (where # should
be a bit more a month of the mail traffic of the list).:

        ...
        1996-09/
        1996-09.mbox
        1996-10/
        1996-10.mbox
        last300/
        

Then you always have an archive that size does not grow to infinity.
Additionaly you have the archives grouped by month when you run mhonarc
from cron at the end of the month on the recently used mbox.

The overhead is to run mhonarc once per month and a possible overlap
of messages in the last300 and latest 199X-XX archives.

Mhmm... Now I wonder why I have not set my archives up this way :-)

Achim

Thanks!

ben

grosser(_at_)uiuc(_dot_)edu

<Prev in Thread] Current Thread [Next in Thread>