Rename Cyrus IMAP folders
I had the task to restructure some shared IMAP folders on our IMAP server running Cyrus.
I come up with the following solution.
- Rename the IMAP folder in cyradmin with the renm fromwhat towhat command
- Adjust all users subscribed folder list by issuing the following command in the /var/lib/cyrus/user directory:
find . -iname '*.sub' -exec sed -i 's/fromwhat\x09/towhat\x09/' {} \;
This did the thing for me. Cheers!:)
No comments:
Post a Comment