Gionatan Danti
2020-May-11 14:37 UTC
Deleting messages from filesystem with sdbox mail format
Il 2020-05-11 15:54 Aki Tuomi ha scritto:> If you manually change the mailbox contents like that, you need to run > doveadm force-resync to fix the situation. > > AkiOk, so it means that dovecot will *not* automatically fix the index file and I need to reconstruct the index file, right? Just for completeness: will not fixing the index file (after a manual deletion) cause unexpected issues, or "only" lingering reference to a delete email? Thanks. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it [1] email: g.danti at assyoma.it - info at assyoma.it GPG public key ID: FF5F32A8
Aki Tuomi
2020-May-11 15:41 UTC
[EXT] Re: Deleting messages from filesystem with sdbox mail format
> On 11/05/2020 17:37 Gionatan Danti <g.danti at assyoma.it> wrote: > > > Il 2020-05-11 15:54 Aki Tuomi ha scritto: > > If you manually change the mailbox contents like that, you need to run > > doveadm force-resync to fix the situation. > > > > Aki > > Ok, so it means that dovecot will *not* automatically fix the index file > and I need to reconstruct the index file, right? > > Just for completeness: will not fixing the index file (after a manual > deletion) cause unexpected issues, or "only" lingering reference to a > delete email? > > Thanks. > > -- > Danti GionatanThe index will be rebuilt once you try to access the mail. Aki
Gionatan Danti
2020-May-11 16:48 UTC
[EXT] Re: Deleting messages from filesystem with sdbox mail format
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 Assyoma S.r.l. - www.assyoma.it [1] email: g.danti at assyoma.it - info at assyoma.it GPG public key ID: FF5F32A8