[Dovecot] Fixing bad maildir message sizes

Richard Platel rplatel at tucows.com
Mon Jan 21 21:54:22 EET 2013


Hello.

As stated in my previous message, we have some old compressed maildir messages with incorrect sizes in the filename.  These messages cause dovecot 2.x problems.

I'm trying to write a script to crawl all our messages, check the actual message size and if necessary, fix the filename.  However, when I do this, dovecot gives the message a new UID on next login.  If I change the filename in dovecot-uidlist, dovecot still gives a new UID on next login.  If I change dovecot-uidlist and delete the index, then the UID is preserved.

Re-indexing our millions of mailboxes is not a great solution for us.  Is there a good way to fix this?





More information about the dovecot mailing list