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
> On 11/05/2020 19:48 Gionatan Danti <g.danti at 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 TecnicoExcept 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
Gionatan Danti
2020-May-11 17:06 UTC
Deleting messages from filesystem with sdbox mail format
Il 2020-05-11 18:51 Aki Tuomi ha scritto:> 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.Sure - I used it and worked like a charm! I was just curious to understand if/how an apparently "harmless" operation (deleting an unwanted email file) can result in serious index problems. Thank you so much. -- 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
Maybe Matching Threads
- [EXT] Re: Deleting messages from filesystem with sdbox mail format
- Deleting messages from filesystem with sdbox mail format
- Deleting messages from filesystem with sdbox mail format
- Questions about hardlinks, alternate storage and compression]
- Cache auth credentials on Samba domain member