> On 11/05/2020 19:48 Gionatan Danti <g.da...@assyoma.it> wrote: > > > Il 2020-05-11 17:41 Aki Tuomi ha scritto: > > The index will be rebuilt once you try to access the mail. > > Hi Aki, I probably misunderstood yor previous reply. So, the index will > be fixed when either: > - running doveadm force-sync > - accessing the mailbox (ie: via IMAP). > > This means that removing an email from the filesystem (ie: a u.* file) > and the index cache file (dovecot.index.cache) should be safe, as the > main index file (dovecot.index) will be fixed when accessing the > mailbox. > > Am I missing something? > Thanks. > > -- > Danti Gionatan > Supporto Tecnico
Except now you lost the cache. Which is not really necessary. Why not use 'doveadm expunge -u victim mailbox box uid number' instead? The uid number is same as the number in file name. Aki