On Sun, Aug 01, 2004 at 12:49:58AM -0500, Vermyndax wrote: > I have my SpamAssassin forwarding to a user that operates as a spam > quarantine mailbox. All users have access to this mailbox to go through > and delete spam at will. > > I would like to have a script that runs as a cron job that tar/gzip's > all of the messages and then empties the > /home/spamcatcher/.maildir/cur/* directory.
Put this in the appropriate crontab: cd /home/spamcatcher/.maildir && \ tar czf <whatever>.tar.gz cur && \ rm -fr cur/* > I would like to keep up to > 5 weeks worth of these tar gzip's and rotate them out as time progresses. then set the time sufficiently before the run of logrotate (or whatever you use for log rotation, and add the handling of <whatever>.tar.gz to the logrotate configs. Or, depending on the log rotation process, you could hook the above script to the "post-rotate" part of the configuration, and skip the crontab aspects. > Can any of you guys help this scripting newbie whip up something like that? > > Mucho danke if so :) > > --JM Cheers, -- Bob McClure, Jr. Bobcat Open Systems, Inc. [EMAIL PROTECTED] http://www.bobcatos.com Grace happens.