[lug] Mail archiving solutions

Rob Nagler nagler at bivio.biz
Wed Jun 11 14:21:50 MDT 2003


* Joseph Crotty (jcrotty18 at attbi.com) 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).

How about changing your procmail rule to be something like:

    : 0 c
    | cat >> mail/$(date +%Y%V).mail

Rob




More information about the LUG mailing list