Am 27.10.2010 20:26, schrieb Daniel Luttermann:
Dr Matthew Williams wrote on 10/27/2010:

Hello,

I have been investigating mailbox conversions and have used the convert
plugin under Dovecot V1.x. I cannot find the plugin in the list on the
wiki for Dovcot V2.x, is it not included for a reason?

I understand that I can do a post-login script to do the conversion,
any guidance on best practices?

you can use dsync instead.

Link: http://wiki2.dovecot.org/Tools/Dsync

--
Daniel

after having some problems with dsync, we did all convertings like this 
(imap-tool/daemon)
1. make a namespace for the old format
2. make a namespace for the new format
3. use something like this:
(echo "1 select .mboxnamespace/old"; echo "2 copy 1:* mdboxnamespace/new"; echo "3 logout")| "/usr/local/libexec/dovecot/imap -u <user>"
after checking the result you can do
(echo "1 select .mboxnamespace/old"; echo "2 delete .mboxnamespace/old"; echo "3 logout")| "/usr/local/libexec/dovecot/imap -u <user>" and thats it... works for every formats that dovecot can access... perhaps it is possible to add this way as an alternative for dsync to the wiki - cause dsync has some problems.. i.e. wenn old mailboxes have little errors or something like that...
note: you have to create the new "folder" in the new namespace of course before 
copying...

bye and i hope this will help all of you!
Tobi

--


Dr. Nagler & Company GmbH
Hauptstraße 9
92253 Schnaittenbach

Tel : 09622-7197-38
Fax : 09622-7197-50
Web : http://www.nagler-company.com
E-Mail : tobias.dauc...@nagler-company.com

Hauptsitz:              Schnaittenbach
Handelregister:         Amberg HRB 4653
Gerichtsstand:          Amberg
Steuernummer:           201/118/51825
USt.-ID-Nummer:         DE 273143997
Geschäftsführer:        Dr. Martin Nagler, Dr. Dr. Karl-Kuno Kunze

Reply via email to