On Tue, Jan 07, 2003, James Gregory wrote: > My current aim (which I don't think procmail can achieve) is to go > through all my messages once a night and move any messages that are > older than (say) a month into the same folders under my "Archives" > folder. > > Does anyone know how to do this or do I need to write a little perl > script to do it?
Doing an apt-cache search for something completely different, I discovered this program, which does pretty much what you want. It archives old mail (you can specify how many days "old" should be, or specify a date range) in mbox, MH, Maildir or IMAP folders to a gzipped mbox file (some mail clients can read gzipped mboxes directly). It is designed to be run from cron. archivemail: http://archivemail.sourceforge.net/ I just tested it out on some of my Maildirs. It seems to do something odd with the new flag (ie sets it on occasion), but seems to work, and does copy messages into an existing archive fine. The only problem I have is that I store my mail in subfolders - ie Tech/Python, and this will be archived as Python_archive.gz, causing a possible collapsing of namespaces. You can pass it an archive name formatting string, designed so that your archives can have a date in them ("Python_archive-2002-12" or similar"). -Mary -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
