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