Displaying 2 results from an estimated 2 matches for "mailbox_is_any_inbox".
2017 Aug 17
3
Can't recursively delete mailboxes
Hi,
This appears to be some sort of dovecot bug.  When I use the -r option to recursively delete a mailbox and sub-folders, it removes the sub-folders but not the inbox.  It gives me the error below:
doveadm mailbox delete -u denise at lifelinetechnique.com.au -r -s inbox
doveadm(denise at lifelinetechnique.com.au): Error: Can't delete mailbox inbox: INBOX can't be deleted.
Our user
2017 Aug 17
0
Can't recursively delete mailboxes
...be deleted.
>
> Our user database is in ldap and I am using dovecot-ee v2:2.2.31.2-1.  Could you please acknowledge that this is a bug or let me know the correct way of recursively deleting a mailbox as there is nothing in the man page about the -r option.
It's on purpose:
         if (mailbox_is_any_inbox(box)) {
                 /* IMAP protocol allows this, but I think it's safer to
                    not allow it. */
                 mailbox_free(&box);
                 client_send_tagline(cmd, "NO INBOX can't be deleted.");
                 return TRUE;
         }
Why do...