We wrote a script for 2.0.16 that handled renames, never tested it with 2.1.x, but it should work as long as your seen files are text format. The script does the following:

################################################################
#This script will take a source file and convert mail accounts from and old UID
#to a new UID;
# source file format: 3 columns:
# <old UID> <new UID> <new Partition> with white space between
###############################################################
#The script will:
#1) obtain list of mailboxes under the old UI via direct IMAP calls
#2) create the new mailboxes via direct IMAP calls
#3) do the recursive copy of mail files from old UID to new UID
#4) reconstruct new UID mailbox
#5) get the seen file for the old UID and prep for the new UID
#6) get the contents of all cyrus.header files for old & new UIDs into arrays
#7) hula-hoop thru seen file stuff; do tricky search and replace
#8) handle search and replace for old UID to new UID in <newUID>.sub file
#9) move any sieve scripts to the new UID


It's not perfect, for example, it won't fix ACL's to other mailboxes, but If you are interested let me know and I will send it to you.

Enjoy,
John Wade

David G Mcmurtrie wrote:

On Wed, 26 Jan 2005, Jason Huddleston wrote:



This function is disabled by default. Add "allowusermoves:1" to your
imapd.conf



Thanks Jason. It looks like this option doesn't exist until the 2.2 branch. Unfortunately we're running 2.1.17. I appreciate the information, though.

Dave

PGP/GPG Key:  http://www.pitt.edu/~dgm/gpgkey.asc.txt
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html



---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to