On Thu, 2011-10-13 at 18:23 -0700, jdow wrote:

> You mean like
> ===8<---
> :0c:
> $HOME/mail/rawmbox
> ===8<--- {^_-}
> 
I'm not really up to speed on procmail, but I guess so.

> What that trick needs is a way to pull a log rotate sort of function on the
> rawmbox.
>
I cheated there: rather than trying to massage some combo of subject and
sender into a unique filename (each quarantined message is a separate
file), I merely use the date received formatted as ccyy-mm-dd_h:mm:dd as
the file name and (paranoid thinking) append the next lower case letter
in the unlikely event of a spam having already been quarantined in that
second. Besides, it makes the 7 day deletion cron job somewhat trivial
and the PHP displayed list easy to sort with most recent spam at the
head of the list, since yesterday's spam is about all I'm likely to want
to examine.

>  I do leave all the processed mail on our mail server and manually
> rotate it every month when I do the saved email backup on my main machine.
>
My old spam deletion is run as a daily cron job.

> So in theory I can rebuild with no more than a month of deletions to redo.
>
There we differ: my quarantine is strictly 7 days and then its gone. My
mail archive is also updated by a daily cron job. The archive is a
PostgreSQL database, so necessarily other backup methods are used
(pgdump or stopping PostgreSQL and taking a compressed tar copy are the
obvious ones and in fact I use both (compressed tar as part of the daily
backup to a permanently online USB drive and pgdump for a weekly offline
backup).

> It's done well enough considering I've been handling mail on the Windows
> machines because that's where I make money. (Yes, I am quite mercenary.)
> 
And why not? If I was a better business person than I am, I'd be making
a much more determined effort to sell my mail archive system.
 
Martin


Reply via email to