[Dovecot] importing plain mboxes to dovecot maildirs
Is there way to import old plain mboxes via dsync? It complains about lack of index files:
ponto:(admin)~>dsync mirror mbox:~/mail dsync(admin): Error: Failed to sync mailbox sent-mail: Mailbox GUIDs are not permanent without index files dsync(admin): Error: Failed to sync mailbox saved-messages: Mailbox GUIDs are not permanent without index files dsync(admin): Error: Failed to sync mailbox sent-mail-feb-2012: Mailbox GUIDs are not permanent without index files
On 17.3.2012, at 8.36, Radim Kolar wrote:
Is there way to import old plain mboxes via dsync? It complains about lack of index files:
ponto:(admin)~>dsync mirror mbox:~/mail dsync(admin): Error: Failed to sync mailbox sent-mail: Mailbox GUIDs are not permanent without index files dsync(admin): Error: Failed to sync mailbox saved-messages: Mailbox GUIDs are not permanent without index files dsync(admin): Error: Failed to sync mailbox sent-mail-feb-2012: Mailbox GUIDs are not permanent without index files
Well, you can work around if by letting it create indexes. Hm. Why exactly can't it create indexes? Do you have some setting disabling them?
dsync(admin): Error: Failed to sync mailbox sent-mail-feb-2012: Mailbox GUIDs are not permanent without index files Well, you can work around if by letting it create indexes. Hm. Why exactly can't it create indexes? Do you have some setting disabling them? indexes never existed because these mboxes were never used by dovecot, its not conversion from one format to another, its import.
Maybe open bug to add feature "dsync import" which will not depend on existing indexes?
On Sat, 2012-03-17 at 18:29 +0100, Radim Kolar wrote:
dsync(admin): Error: Failed to sync mailbox sent-mail-feb-2012: Mailbox GUIDs are not permanent without index files Well, you can work around if by letting it create indexes. Hm. Why exactly can't it create indexes? Do you have some setting disabling them? indexes never existed because these mboxes were never used by dovecot, its not conversion from one format to another, its import.
Maybe open bug to add feature "dsync import" which will not depend on existing indexes?
dsync doesn't need existing indexes, it wants to create indexes. If it can't because of e.g. permission issues, you should be able to work around it with:
dsync mirror mbox:~/mail:INDEX=/tmp/indexes
I might change dsync at some point to work even without permanent mailbox GUIDs, but there are many other more important things to do.
participants (2)
-
Radim Kolar
-
Timo Sirainen