\Noselect missing after deleting mailbox
Onno Molenkamp
onno at flox.org
Tue Apr 7 22:05:19 EEST 2020
Hi,
With mailbox_list_index enabled (which is the default), Dovecot won't
return \Noselect when LISTing a mailbox that was deleted but still has
subordinate mailboxes. Before creating such a mailbox in the first
place, it does return \Noselect.
1 LIST "" Test
1 OK List completed (0.002 + 0.000 + 0.001 secs).
2 CREATE Test/Test
2 OK Create completed (0.014 + 0.000 + 0.014 secs).
3 LIST "" Test
* LIST (\Noselect \HasChildren) "/" Test
3 OK List completed (0.001 + 0.000 secs).
4 CREATE Test
4 OK Create completed (0.006 + 0.000 + 0.005 secs).
5 LIST "" Test
* LIST (\HasChildren) "/" Test
5 OK List completed (0.001 + 0.000 secs).
6 DELETE Test
6 OK Delete completed (0.011 + 0.000 + 0.011 secs).
7 LIST "" Test
* LIST (\HasChildren) "/" Test
7 OK List completed (0.001 + 0.000 secs).
Like response 3, response 7 should contain \Noselect. (and it does, when
mailbox_list_index is disabled)
It looks like Dovecot isn't updating dovecot.list.index properly when
deleting such a mailbox. Forcing Dovecot to rebuild the index by
deleting dovecot.list.index* will cause \Noselect to re-appear in responses.
Onno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20200407/f96dccce/attachment.sig>
More information about the dovecot
mailing list