On Tue, Feb 27, 2007 at 12:13:11AM -0500 or thereabouts, Michael Pobega wrote:
> I'm pretty new to cron jobs, and I've just started playing around with
> them pretty recently.

Hi Michael:

Cool.

> I'd like to be able to create a cron job that does a weekly archive of
> all of my folders in ~/mail. The way I have my mail set up is one
> folder per box, for example my folders are:
> 
> ~/mail/inbox
> ~/mail/debian-user
> ~/mail/sent
> 
> I'd like the Cron job to archive these on a weekly basis, but not
> exactly on a weekly basis.

Instead of reinventing the wheel; Why not use something like
archivemail?

        # aptitude show archivemail
        Package: archivemail
        State: installed
        Automatically installed: no
        Version: 0.7.0-1
        Priority: optional
        Section: mail
        Maintainer: Joey Hess <[EMAIL PROTECTED]>
        Uncompressed Size: 139k
        Depends: python
        Description: 
                archive and compress your old email
                Archivemail moves old mail out of a mailbox (in Maildir, MH, or
                mbox format, or via IMAP) and archives it in a compressed 
                mbox-format mailbox file. It is well suited to be run from cron 
for
                automatic archiving of your old mail.

It runs via cron as well, and the included  readmes will help you set
the syntax up for whatever time period "floats yer boat".


-- 
Regards
Stephen A.
                                                   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Having nothing, nothing can he lose.
                -- William Shakespeare, "Henry VI"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Attachment: signature.asc
Description: Digital signature

Reply via email to