User Tools

Site Tools


move-cyrus-folder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
move-cyrus-folder [2017/02/27 14:48] – created snargmove-cyrus-folder [2017/10/11 16:31] (current) snarg
Line 1: Line 1:
 +This procedure can be used to move a imap folder between users on a server (or between servers). 
 +
   * copy imap folder over.   * copy imap folder over.
   * chown all to cyrus:mail   * chown all to cyrus:mail
Line 7: Line 9:
  
   * fix ACL on new directories:   * fix ACL on new directories:
-  * grab a directory listing one per line,  create a vim script to change each line to 2 lines, and do the following: for eg:+  * grab a directory listing one per line (find -type d),  create a vim script to change each line to 2 lines, and do the following: for eg:
     * dam user.newuser.copied-directory."subdirectory with spaces" olduser     * dam user.newuser.copied-directory."subdirectory with spaces" olduser
     * sam user.newuser.copied-directory."subdirectory with spaces" newuser lrswipkxtecda     * sam user.newuser.copied-directory."subdirectory with spaces" newuser lrswipkxtecda
  
   * replace slashes with dots in sub/subdirectories   * replace slashes with dots in sub/subdirectories
-    dam = delete acl on mailbox +  escape quote marks ' -> \'
-    * sam = set acl on mailbox+
  
   * paste the script into cryadm   * paste the script into cryadm
 +
 +dam = delete acl on mailbox, sam = set acl on mailbox
 +
move-cyrus-folder.txt · Last modified: 2017/10/11 16:31 by snarg