[Dovecot] Auto rebuild indexes?
Here's an easy question for you. I'm restoring some emails from a backup. Do I need to delete or otherwise manually rebuild the indexes?
dovecot.index.cache dovecot.index.log dovecot-uidlist
Or will Dovecot itself detect that something is amiss and handle it on first folder access?
Using Maildir with Dovecot 1.2.9
On 14.1.2011, at 1.02, Willie Gillespie wrote:
Here's an easy question for you. I'm restoring some emails from a backup. Do I need to delete or otherwise manually rebuild the indexes?
No.
Or will Dovecot itself detect that something is amiss and handle it on first folder access?
Yep.
I have another easy question for you, Timo:
When cache files were deleted because some corruption, is there a way to regenerate all cache files in all accounts?
I'm talking about 300GB of mails distributed in 40 accounts using Maildir; when all users tried to access their mailboxes with their MUA at the same time, dovecot produced a high load average in the server making it unusable, so would be useful a function that instructs dovecot to check all cache files and regenerate the missing or corrupted ones while no user is accesing its mailbox. Is that possible?
On 8.2.2011, at 8.25, Emilio wrote:
When cache files were deleted because some corruption, is there a way to regenerate all cache files in all accounts?
It depends on if you know what fields the clients want. Different clients want different fields. But if you do know them, and you have v2.0, you can do something like:
doveadm fetch -A 'size.virtual imap.envelope imap.bodystructure hdr.references' all
participants (3)
-
Emilio
-
Timo Sirainen
-
Willie Gillespie