space character in mailbox name
Simon Matter
simon.matter at ch.sauter-bc.com
Tue May 6 02:05:10 EDT 2003
Mike & Robyn Cairns schrieb:
>
> Hi all,
>
> First (hopefully last) posting so please be kind!
>
> I'm upgrading a older cyrus imap install to version
> 2.1.10 on a newly built RedHat 9 box using Squirrelmail as a webmail client
>
> Installation went fine, IMAP and Squirrelmail are working over ssl.
>
> My problem is migrating the old user base from the previous installation
> (different physical machine).
>
> I can copy the users data (mailboxes, preferences etc), but I cannot seem to
> find a way to 'reconstruct' their email boxes consistently on the new
> server. The '-r' option of 'reconstruct' seems to do nothing, I have had to
> create each users set of mailboxes manually (eventually sorted out a script
> for it), I also have the same problem reported in the mail list archives of
> users with a blank in the mailbox name. the cyradm command line will not
> accept these (either quoted or escaped) although I can get squirrelmail to
> create one.
>
> Any assistance with correct approach to migrate users appreciated.
The following mail from the archives may be what you're looking for.
Regards,
Simon
------------------------------------------------------------------------
From: "E M Recio" <erecio at lo-tek.org>
To: <info-cyrus at lists.andrew.cmu.edu>
In-Reply-To: <3E91B665.4000701 at omniti.com>
References: <3E91AE19.6080605 at harvard.edu>
<3E91B665.4000701 at omniti.com>
X-Priority: 3
Importance: Normal
Cc: <edward_zarecor at harvard.edu>
X-Mailer: SquirrelMail (version 1.2.11)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: owner-info-cyrus at lists.andrew.cmu.edu
Precedence: bulk
Status: O
X-Mozilla-Status: 8011
X-Mozilla-Status2: 00000000
X-UIDL: 3d95300f00011be2
> I hope that you have a flat text version as a backup.
>
> If you don't you can try to dump the mailbox file, mv the old mailbox.db
> file out of the way, and then reimport the mailbox file. Then run a
> reconstruct to make sure that everything is correct.
>
> Hope this helps,
> B
If you did lose the plain text file, then you'll need to recreate it.
here's how:
#!/bin/bash
#
# Replace next line with however you stop cyrus
# ie: killall master etc etc.
/etc/init.d/cyrus stop
mv /var/imap/mailboxes.db /var/imap/mailboxes.db.$$
cd /var/spool/imap/user
for i in `ls`
do
echo $i
echo "user.$i<\t>default<\t>$i<\t>lrswipcda<\t>cyrus<\t>lrswipcda" >>
/tmp/newmboxlist.txt
done
#
# Then when you have everyone's base directory in /tmp/newmboxlist.txt,
do:
#
ctl_mboxlist -u </tmp/newmboxlist.txt
# and then:
cd /var/spool/imap/user
for i in `ls`
do
reconstruct -rf user.$i
done
HTH
-Elmo
------------------------------------------------------------------------
>
> Mike
>
> "old age and treachery will always defeat youth and skill"
>
> _________________________________________________________________
> Express yourself with cool emoticons http://www.msn.co.uk/messenger
More information about the Info-cyrus
mailing list