<div dir="ltr">Thanks, but both commands didn't create dovecot.index. Only when I open folder with IMAP client, the dovecot.index is created.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 3 gru 2019 o 18:16 Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On 03/12/2019 18:30 Tomek Lutelmowski via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br>
> <br>
> <br>
> Hello,<br>
> <br>
> I'm using maildirs, and I have problems with big mailboxes (~ 20000 emails, 30-50GB) - sometimes access to such mailbox takes very long (~10 minutes), I would like to be able to create index for mailbox in background, but I couldn't find any way to do it. So far I tried:<br>
> <br>
> doveadm -D -vvv index -u user 'Folder' <br>
> <br>
> But even if this folder have no dovecot.index* files - I always get:<br>
> <br>
> doveadm(user): Info: Wersje robocze: Cache is already up to date<br>
> <br>
> It seems that doveadm doesn't actually checks if the index is present. The index is created only when I log with IMAP client and check the folder.<br>
> <br>
> So i tried:<br>
> doveadm mailbox cache purge -u user 'Folder' <br>
> <br>
> No joy either:<br>
> doveadm(user): Error: Cache is unusable<br>
> <br>
> And command below doesn't actually do anything to index:<br>
> doveadm -vvv force-resync -u user 'Folder'<br>
> <br>
> Is there any way to use doveadm tool to create/fix index? Shouldn't the index be updated on each email arrival?<br>
> <br>
> Cheers,<br>
> TomekL<br>
<br>
Try first 'doveadm fetch -u victim body ALL'. If this does not produce any useful results, try 'doveadm force-resync -u victim "*"'.<br>
<br>
Aki<br>
</blockquote></div>