[SGVLUG] Is there anything like "logrotate" for e-mail files?

Tom Emerson osnut at pacbell.net
Mon Jul 3 11:18:29 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

While I'm on a kick to clean up e-mail, I'd like something to archive my
messages.  I think I've mentioned this before, but didn't get much out
of it -- essentially, I want to set up /server-side/ archiving, not
client-side (sure, I know I can set up client-based rules in any number
of clients, but this is not an optimal solution -- it would require
running a particular client all the time --or-- somehow ensuring that
any "rules" I create work in all clients, not to mention this means
moving messages "over the wire" rather than a "mv" operation...)

Ideally, I'd like to use logrotate, but it doesn't appear that this will
work -- logrotate is geared more towards archiving a KNOWN filename into
a sequentially-numbered snapshot/version.  What I want to do is MOVE
several vaguely-known filenames into another directory.

"find" will have some troubles as well. (but it may work as a starting
point for determining which files to move)  the best I have so far is:

   find . -true -printf 'mv %h/%f %h/archive/%TY/%Tm/%f\n'

unfortunately, using "Maildir" message folders, this tries to do things
like this:

mv ./cur/3442725.75.osnut:2, ./cur/archive/2005/12/3442725.75.osnut:2,
tom at osnut:~/Maildir/.Discussion Groups>

it really needs to move to ".Discussion Groups.archive/cur/..." or (in
the case of this list in particular):

    ~/Maildir/.Discussion Groups.SGVLUG.general.archive/cur/...

Does anyone know of anything like this, or is this my "itch to scratch"?

- --
Top o' the Blog: It's good to be the King...
http://osnut.homelinux.net/mtblog/ya_index.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEqV91V/YHUqq2SwsRAg4oAJ9UdjGLFY5/zkikjpbG0wSJpESnGwCgkDBm
IoU4N0IjsXmc5B3dzMfccgU=
=ecFq
-----END PGP SIGNATURE-----


More information about the SGVLUG mailing list