I found a way to reproduce the problem :) Use an arbitrary mailbox (maybe my Dovecot config with mdbox etc. required). Then use Thunderbird (52.9.1 on Mac) to create eg. the following folder (without the quotes!):
"[Test / Test]" This is a space, a slash and a space between the Test in square brackets. TB now creates the following two folders: 1. "INBOX/[Test " (not subscribed) 2. "INBOX/[Test / Test]" (subscribed) I can delete the 2. one, but the 1. one is not deletable, neither via TB nor doveadm command: / # doveadm mailbox status -u b...@bb-trunk.egroupware.de all 'INBOX/[Test ' doveadm(b...@bb-trunk.egroupware.de): Error: Mailbox INBOX/[Test : Failed to lookup mailbox status: Mailbox doesn't exist: INBOX/[Test / # doveadm mailbox delete -u b...@bb-trunk.egroupware.de 'INBOX/[Test ' doveadm(b...@bb-trunk.egroupware.de): Info: Mailbox deleted: INBOX/[Test / # doveadm mailbox list -u b...@bb-trunk.egroupware.de 'INBOX/[Test ' INBOX/[Test I can see the folder under mdbox/mailboxes and in mdbox/subscriptions. I hope that allows you to reproduce it. Ralf Am 14.08.18 um 15:13 schrieb Ralf Becker: > I have a user who has several folders in his mailbox, which we can not > delete, neither via IMAP nor via doveadm: > > root@ka-nfs-mail:~# doveadm mailbox list -u <username> | grep hbereiche > | cat -v > INBOX/[Fachbereiche ^M > INBOX/Fachbereiche ^M > INBOX/hbereiche^M > INBOX/hbereiche/LAGen]^M > INBOX/hbereiche/LAG^M > INBOX/[Fachbereiche^M > INBOX/[Fachbereiche/LAGen]^M > INBOX/[Fachbereiche]^M > INBOX/[Fachbereiche]/LAGen]^M > INBOX/[Fachbereiche]/LAGe^M > root@ka-nfs-mail:~# doveadm mailbox delete -u <username> > 'INBOX/Fachbereiche ' > doveadm(<username>): Info: Mailbox deleted: INBOX/Fachbereiche > root@ka-nfs-mail:~# doveadm mailbox list -u <username>| grep hbereiche | > cat -v > INBOX/[Fachbereiche ^M > INBOX/Fachbereiche ^M > INBOX/hbereiche^M > INBOX/hbereiche/LAGen]^M > INBOX/hbereiche/LAG^M > INBOX/[Fachbereiche^M > INBOX/[Fachbereiche/LAGen]^M > INBOX/[Fachbereiche]^M > INBOX/[Fachbereiche]/LAGen]^M > INBOX/[Fachbereiche]/LAGe^M > > As far as I tried none of these folders can be deleted (I added single > quotes for trailing space and tried to delete subfolders first). > > Mailbox is in mdbox format on a replication pair under Dovecot 2.2.36 > and I tried both nodes of the replication with same result. > > Any ideas? > > Ralf > -- Ralf Becker EGroupware GmbH [www.egroupware.org] Handelsregister HRB Kaiserslautern 3587 Geschäftsführer Birgit und Ralf Becker Leibnizstr. 17, 67663 Kaiserslautern, Germany Telefon +49 631 31657-0
signature.asc
Description: OpenPGP digital signature