Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Gionatan Danti
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 und

Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Aki Tuomi
> On 11/05/2020 19:48 Gionatan Danti 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 > - a

Re: [EXT] Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Gionatan Danti
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

Re: [EXT] Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Aki Tuomi
> On 11/05/2020 17:37 Gionatan Danti 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

Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Gionatan Danti
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

Re: Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Aki Tuomi
> On 11/05/2020 16:45 Gionatan Danti wrote: > > > Dear list, > I recently had to delete some messages from an sdbox mailbox, for which > I used the canonical "doveadm expunge" command without issues. > > However I got curious and, on a test mailbox, I deleted an unimportant > message direc

Deleting messages from filesystem with sdbox mail format

2020-05-11 Thread Gionatan Danti
Dear list, I recently had to delete some messages from an sdbox mailbox, for which I used the canonical "doveadm expunge" command without issues. However I got curious and, on a test mailbox, I deleted an unimportant message directly from the filesystem (rm u.650). After removing the file, th