[Dovecot] dsync not copying all mail

Nick Rosier nick+dovecot at bunbun.be
Mon Jan 10 23:48:55 EET 2011


Timo Sirainen wrote:
> On 10.1.2011, at 21.25, Nick Rosier wrote:
>
>> you had indeed answered this; I tried the utility but it did not help. That's why I tried the imapsync approach in hope that would clean the messages and create a new dbox-only account. I also ran the utility on the synced mailboxes and retried dsync but that did not fix it either. I'm really puzzled to why this is. How can I recognize a hybrid mailbox? All mailboxes only contain dovecot.index, dovecot.index.log, dbox.index and u.* files. 
>>
>
> If there are no filenames that begin with a number, then it's not a hybrid mailbox. If there are more u.* files than number of messages in a converted mailbox with dsync, then .. well .. I'd just use Dovecot v2.0 on the original non-converted mailbox: 
>
>
> doveadm -u username force-resync INBOX
>
> This will make sure all of INBOX's u.* files are in the index files. Do the same for the rest of the mailboxes too. 
>
>
Thank you very much, that solved the problem! Ran force-resync on all 
mailboxes that were missing mails (made handy use of the subscriptions 
file) and they "automagicly" re-appeared. Just had to mark them read again.

N.


More information about the dovecot mailing list