[lug] Mail archiving solutions

Joseph Crotty jcrotty18 at attbi.com
Tue Jun 10 22:38:06 MDT 2003


On Tue, 10 Jun 2003, Peter Hutnick wrote:

> > All of my email is carbon copied to a master archive mbox file by
> > procmail.  I would like to be able to run a cron job that calls a
> > script, say weekly, that churns over the master archive file and sorts
> > the mail into monthly files  (e.g. 0603.mail).
> > 
> > http://www.cs.duke.edu/~des/scripts/sortmail_article.html
> >
> > However, this solution seems to beckon the dark ages (circa 1998).
> 
> This is known as "stable" in some circles ;-)
> 
> > Anyone have any better and/or more recent ideas?
> 
> The obvious solution in my mind is a cron job that run a script that
> creates "next months" archive at about midnight on the last day of each
> month, then links the "master archive file" to that months archive file.
> 
> Or, if you really want /two/ copies of every message that is over a month
> old, have procmail deliver to the "master" and to "this_month" which,
> again, would be a link to the actual [date].mail file.  (procmail will
> happily deliver a message to two places.)
> 
> Maybe that is too simple, or not "cool" enough?
> 
I ran across one "cool" solutions that involved PostGress DB, but I  want fast
and easy.  I thought maybe someone would point me at a well known robust
solution, but it seems this is the realm of "role your own".  Thanks for the
input Peter!

Joe




More information about the LUG mailing list