doveadm mailbox delete not working
Ralf Becker
rb at egroupware.org
Wed Aug 15 19:23:12 EEST 2018
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 bb at bb-trunk.egroupware.de all 'INBOX/[Test '
doveadm(bb at bb-trunk.egroupware.de): Error: Mailbox INBOX/[Test : Failed
to lookup mailbox status: Mailbox doesn't exist: INBOX/[Test
/ # doveadm mailbox delete -u bb at bb-trunk.egroupware.de 'INBOX/[Test '
doveadm(bb at bb-trunk.egroupware.de): Info: Mailbox deleted: INBOX/[Test
/ # doveadm mailbox list -u bb at 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 at 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 at ka-nfs-mail:~# doveadm mailbox delete -u <username>
> 'INBOX/Fachbereiche '
> doveadm(<username>): Info: Mailbox deleted: INBOX/Fachbereiche
> root at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20180815/337e9de9/attachment.sig>
More information about the dovecot
mailing list