I've got a bash script that uses find to move mail from folders that is more than 2 weeks old. It does this without renaming the source folder. I run it everynight and it works just fine.
There is also a project on sourceforge called archivemail that does something similar. I haven't used it, but it claims to work with Maildir folders and has mentioned several times on this list as a solution to just such a problem.
-andy
Paul Warren wrote:
We are currently in the process of moving our IMAP server from mbox to
maildir with courier. One of the few problems I have yet to solve is
the problem of rotating mail folders on a monthly basis. We have a
script that gets called on the first of every month to move a specified
mail folder from foo to foo-Month-Year, and create a new, empty foo.
I'm trying to write an equivalent for Maildir. I'm not an expert on
Maildir, so I'm not entirely sure what the safe way to do this is. Currently, I create a new folder called foo-Month-Year and then rename
foo/new/* to foo-Month-Year/new/* and foo/cur/* to foo-Month-Year/cur/*
This seems to work, but it seems that my IMAP client does not get
notified of this change - all the messages are now listed in the folder
index for both folders, although I can't select them in the old folder. Is there any way to get courier to notify the client that the folder has
changed and the index needs to be re-read? Also, what should I do with
the courierimapuiddb file?
many thanks,
Paul
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
