[lug] Mail archiving solutions

Peter Hutnick peter-lists at hutnick.com
Wed Jun 11 17:35:36 MDT 2003

Rob Nagler said:
> * 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

Brilliant.  (He'll never do that! ;-)


More information about the LUG mailing list