\Noselect missing after deleting mailbox
7 Apr
2020
7 Apr
'20
10:05 p.m.
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
1720
Age (days ago)
1720
Last active (days ago)
0 comments
1 participants
participants (1)
-
Onno Molenkamp