Hello Joe,
When we did this, we achieved the same goal by doing the following:
1. Put in lock file so that now new email is delivered to the folder by
the MTA ... how to do this depends on your MTA and delivery mechanisms.
2. If the user had any open IMAP or POP connections, try to terminate
them nicely. Optionally, block logins via POP and IMAP for the user for
the duration of the conversions of his/her folders.
3. Change the ownership and permissions on the folder in question to it
is only accessible by root ... so that no new connections could alter it.
4. Perform the conversion (everything owned and accessible only by root
or some other separate user)
5. Do the renames back
6. Change the permissions back from root to the actual owner with RW access.
The downside of this is the killing off of open connections ... which
you cannot avoid ... and that user's email clients will not necessarily
notice that the mix folders are "dual use" (can have subfolders and
messages) until they re-synchronize themselves.
Best,
-Erik Kangas
LuxSci
Joe Pruett wrote:
i doesn't look like there is an easy way to convert people's inboxes
and mail folders over to mix while the server is live. i haven't
delved into the guts of mixcvt, but i'm wondering if it locks the
input folder while reading so that i could then hack in a quick rename
into mixcvt. but i'm not sure if the locking of the other tools would
have already opened the original file and just merrily use it after
the lock vanished? what i'm hoping for is:
exclusive lock original
mix convert to temp
rename original to backup
rename temp to original
unlock original
so that the worst that happens is during the conversion, a user is
denied access to the mailbox being converted. do i have any hope?
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw