Tomek Lutelmowski
2019-Dec-03 19:20 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
Thanks, but both commands didn't create dovecot.index. Only when I open folder with IMAP client, the dovecot.index is created. wt., 3 gru 2019 o 18:16 Aki Tuomi <aki.tuomi at open-xchange.com> napisa?(a):> > > On 03/12/2019 18:30 Tomek Lutelmowski via dovecot <dovecot at dovecot.org> > wrote: > > > > > > Hello, > > > > 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: > > > > doveadm -D -vvv index -u user 'Folder' > > > > But even if this folder have no dovecot.index* files - I always get: > > > > doveadm(user): Info: Wersje robocze: Cache is already up to date > > > > 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. > > > > So i tried: > > doveadm mailbox cache purge -u user 'Folder' > > > > No joy either: > > doveadm(user): Error: Cache is unusable > > > > And command below doesn't actually do anything to index: > > doveadm -vvv force-resync -u user 'Folder' > > > > Is there any way to use doveadm tool to create/fix index? Shouldn't the > index be updated on each email arrival? > > > > Cheers, > > TomekL > > Try first 'doveadm fetch -u victim body ALL'. If this does not produce any > useful results, try 'doveadm force-resync -u victim "*"'. > > Aki >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191203/c8b3482e/attachment-0001.html>
Aki Tuomi
2019-Dec-03 19:23 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
Wait, did you mean 'dovecot.index' file? That file is only created occasionally, the actual index is kept in dovecot.index.log. Aki> On 03/12/2019 21:20 Tomek Lutelmowski via dovecot <dovecot at dovecot.org> wrote: > > > Thanks, but both commands didn't create dovecot.index. Only when I open folder with IMAP client, the dovecot.index is created. > > > wt., 3 gru 2019 o 18:16?Aki Tuomi <aki.tuomi at open-xchange.com> napisa?(a): > > > > > On 03/12/2019 18:30 Tomek Lutelmowski via dovecot <dovecot at dovecot.org> wrote: > > > > > > > > > Hello, > > > > > > 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: > > > > > > doveadm -D -vvv index -u user 'Folder' > > > > > > But even if this folder have no dovecot.index* files - I always get: > > > > > > doveadm(user): Info: Wersje robocze: Cache is already up to date > > > > > > 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. > > > > > > So i tried: > > > doveadm mailbox cache purge -u user 'Folder'? > > > > > > No joy either: > > > doveadm(user): Error: Cache is unusable > > > > > > And command below doesn't actually do anything to index: > > > doveadm -vvv force-resync -u user 'Folder' > > > > > > Is there any way to use doveadm tool to create/fix index? Shouldn't the index be updated on each email arrival? > > > > > > Cheers, > > > TomekL > > > > Try first 'doveadm fetch -u victim body ALL'. If this does not produce any useful results, try 'doveadm force-resync -u victim "*"'. > > > > Aki > >
Tomek Lutelmowski
2019-Dec-03 19:31 UTC
Dovecot 2.3.8 - How to force index creation for user/mailbox?
Neither of dovecot.index files are created (.cache, .log, .thread) - these files are created when I open the folder with IMAP client. When mailbox is not used for long time, the indexing takes very long time. So I'm looking for any solution (preferably with doveadm) to manually reindex folders in background. wt., 3 gru 2019 o 20:23 Aki Tuomi <aki.tuomi at open-xchange.com> napisa?(a):> Wait, did you mean 'dovecot.index' file? That file is only created > occasionally, the actual index is kept in dovecot.index.log. > > Aki > > > On 03/12/2019 21:20 Tomek Lutelmowski via dovecot <dovecot at dovecot.org> > wrote: > > > > > > Thanks, but both commands didn't create dovecot.index. Only when I open > folder with IMAP client, the dovecot.index is created. > > > > > > wt., 3 gru 2019 o 18:16 Aki Tuomi <aki.tuomi at open-xchange.com> > napisa?(a): > > > > > > > On 03/12/2019 18:30 Tomek Lutelmowski via dovecot < > dovecot at dovecot.org> wrote: > > > > > > > > > > > > Hello, > > > > > > > > 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: > > > > > > > > doveadm -D -vvv index -u user 'Folder' > > > > > > > > But even if this folder have no dovecot.index* files - I always get: > > > > > > > > doveadm(user): Info: Wersje robocze: Cache is already up to date > > > > > > > > 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. > > > > > > > > So i tried: > > > > doveadm mailbox cache purge -u user 'Folder' > > > > > > > > No joy either: > > > > doveadm(user): Error: Cache is unusable > > > > > > > > And command below doesn't actually do anything to index: > > > > doveadm -vvv force-resync -u user 'Folder' > > > > > > > > Is there any way to use doveadm tool to create/fix index? Shouldn't > the index be updated on each email arrival? > > > > > > > > Cheers, > > > > TomekL > > > > > > Try first 'doveadm fetch -u victim body ALL'. If this does not > produce any useful results, try 'doveadm force-resync -u victim "*"'. > > > > > > Aki > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20191203/be0f4ba4/attachment.html>
Possibly Parallel Threads
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?
- Dovecot 2.3.8 - How to force index creation for user/mailbox?