Something is broken with maintaining the index properly.
There's a "Sent" mailbox that I don't use any more (instead, I use one with a localised name). I had moved all my messages out before.
- Deleted it with "doveadm mailbox delete -e Sent -u my_user". The directory got removed from the filesystem (from under mail/mailboxes).
- I still see it in the index. There's a directory under index/inbox/mailboxes/Sent.
- Removed all other old and flatcurve directories with "mailbox delete"
- After a force-resync they happily reappear.
Altogether I have 6 mailboxes. Just yesterday, on the very same account, dovecot index log registered 64 directory and mailbox deletions:
doveadm dump /var/spool/mail/user/index/inbox/dovecot.mailbox.log | grep -c delete- 64
No other actions were registered. This means that after every force-resync & deletion run Dovecot properly registered the request to delete the mailboxes but did not execute the action on the index. Otherwise it wouldn't be possible to delete a few directories 64 times.
Relevant config section:
mail_driver = mdbox mail_path = %{home}/mail mail_index_path = %{home}/index/inbox
Ákos
Something is broken with maintaining the index properly.
There's a "Sent" mailbox that I don't use any more (instead, I use one with a localised name). I had moved all my messages out before.
1. Deleted it with "doveadm mailbox delete -e Sent -u my_user". The
directory got removed from the filesystem (from under mail/mailboxes).
2. I still see it in the index. There's a directory under
index/inbox/mailboxes/Sent.
3. Removed all other old and flatcurve directories with "mailbox delete"
4. After a force-resync they happily reappear.
Altogether I have 6 mailboxes. Just yesterday, on the very same account, dovecot index log registered 64 directory and mailbox deletions:
doveadm dump /var/spool/mail/user/index/inbox/dovecot.mailbox.log | grep -c delete- 64
No other actions were registered. This means that after every force-resync & deletion run Dovecot properly registered the request to delete the mailboxes but did not execute the action on the index. Otherwise it wouldn't be possible to delete a few directories 64 times.
Relevant config section:
mail_driver = mdbox mail_path = %{home}/mail mail_index_path = %{home}/index/inbox
Akos