Wednesday, May 11, 2011

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.


  1. Rename the IMAP folder in cyradmin with the renm fromwhat towhat command

  2. 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: