can you turn on mail_debug=yes and run doveadm -Dv mailbox delete and provide output and logs from both servers?



---
Aki Tuomi
Dovecot oy

-------- Original message --------
From: Ralf Becker <rb@egroupware.org>
Date: 14/08/2018 16:13 (GMT+02:00)
To: dovecot@dovecot.org
Subject: doveadm mailbox delete not working

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