Yeah, moving mailboxes is a pain :) I had the same problem when I used to
run 1.5-style mailboxes and with 2.0.12. For me it was since my disks were
running out of space, so I had to create new partition on a new disk and
move mailboxes there. Not sure how to do that in case you are in need of
"selective move".
Anyway, here's what I did:
1) export to old-style mailboxes file using ctl_mboxlist -d (for 2.0x)
2) Open file in a good and fast text editor, for example UltraEdit, sort it
3) Estimate, approximately which mailboxes you want moved, lets say from
letter a to m
4) Cut them out from file to another text file
5) Do some regexp replaces (if someone wants it I might have ultraedit-style
regexps I used)
6) Merge files back
7) Produce shell script from the "cut" file with something like "mv user.dir
/another/partition"'s using regexp's
8) Stop mail system
9) Run shell script with moves
10) Import back mailboxes file using ctl_mboxlist if needed
Took me 1 hour to produce all necessary steps from scratch.
Nick Ustinov
[EMAIL PROTECTED]
http://www.videinfra.com
-----Original Message-----
From: Tuuli K Tuominen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 13:08
To: info-cyrus
Subject: renm and subfolders
Hi,
we're using versions 1.5.19 and 1.6.25 still and have about 23000 user
mailboxes on lots of imap partitions. Some of these mailboxes need to be
transferred from one partition to another. I noticed that cyradm's renm
command doesn't move the mailboxes recursively, so the subfolders stay on
the old partition when the master mailbox moves to the new one. Is there a
way to use renamemailbox so that it will move the mailboxes and their
subfolders all at once or do I have to move each subfolder independently?
As there are something like 1500 mailboxes I have to move I'm really looking
for a better solution..
--
Tuuli Tuominen
University of Helsinki IT Department