URGENT Mailboxes.db
Edward Rudd
eddie at omegaware.com
Thu Jan 23 13:50:50 EST 2003
Attached is a script (bash using sed) that should parse through the IMAP
spool directory tree and create the text version of the mailboxes file..
then you have to use ctl_mboxlist to import it into the mailboxes.db file.
You'll have to edit the script and change the path of where your spool
directory resides...
This was written expecting the hashed spool directory option off.
Hope this helps..
Wander wrote:
>Hi,
>
>After a conversion from cyrus-imapd-1.6.24 and cyrus-sasl-1.5.27 to cyrus-imapd-
>2.1.11 and cyrus-sasl-2.1.10, I´ve followed the docs and the ctl_mboxlust -u <
>mailboxes, converts just 1 record with just 1 folder inside it. I´m stucked
>with all the users stoped.
>
>Please any light?
>
>Tanks
>
>Wander
>
>---------------------============-------------------
>Wanderley O. Mendes
>Software Specialist wander at cptec.inpe.br
>Phone: +55-12-560-8432 Fax: +55-12-560-8435
>INPE/CPTEC - Cachoeira Paulista - São Paulo - Brazil
>---------------------============-------------------
>
>
>
-------------- next part --------------
#!/bin/sh
TAB=`echo -e \\\t`
cd /var/spool/imap/user
find . -type d | grep ./ |
sed -e "s/\.\///" |
sed -e "s/\//\./g" |
sed -e "s/\([a-z]*\)\(.*\)/user\.\1\2${TAB}default${TAB}\1${TAB}lrswipcda${TAB}cyrus${TAB}lrswipcda${TAB}/"
cd -
More information about the Info-cyrus
mailing list