Claws-Mail has a bug in it's IMAP handling when trying to delete
a folder. For example, deletion of a folder 'testtest' in INBOX.Trash
is not possible:
[IMAP] [11:27:31] 111 delete "INBOX.Trash.testtest."
[IMAP] [11:27:32] 111 NO Invalid mailbox name: INBOX.Trash.testtest.
Basically, the separator appended to the mailbox name is wrong. Older
servers seem to tolerate a trailing separator, because they more or less translate the delete operation into an rmdir(), but dovecot does not. A
detailed discussion of this can be found in the exchange between the dovecot
and the thunderbird developers in the thunderbird bugtracker:
Can you describe how to reproduce this? Simply creating and deleting such folder works over here (claws 3.8.0, dovecot 2.0.17):
[14:48:50] IMAP4> 57 LIST "" "INBOX.Trash.testtest"
[14:48:50] IMAP4< 57 OK List completed.
[14:48:50] IMAP4> 58 CREATE "INBOX.Trash.testtest"
[14:48:50] IMAP4< 58 OK Create completed.
[14:48:50] IMAP4> 59 LIST "" "INBOX.Trash.testtest"
[14:48:51] IMAP4< * LIST (\HasNoChildren) "." "INBOX.Trash.testtest"
[14:48:51] IMAP4< 59 OK List completed.
[14:48:51] IMAP4> 60 SUBSCRIBE "INBOX.Trash.testtest"
[14:48:51] IMAP4< 60 OK Subscribe completed.
[14:48:54] IMAP4> 61 UNSUBSCRIBE "INBOX.Trash.testtest"
[14:48:54] IMAP4< 61 OK Unsubscribe completed.
[14:48:54] IMAP4> 62 DELETE "INBOX.Trash.testtest"
[14:48:54] IMAP4< 62 OK Delete completed.
In the Mozilla bug, the first step is to unset "Server supports folders that contain sub-folders and messages" but I don't see an equivalent option in Claws.
It could be something that is negotiated within IMAP between the client and server. So, I'm guessing you need to have a Dovecot server that's set up not to allow folders with sub-folders and messages.
Chad, see the information about appending '/' to the folder name on the 'new folder' dialogue.
The problem also exists the other way for some other servers (or that would be less fun).
What I don't understand is that Claws first tries without separator appended, and only if it fails, add the separator:
[16:00:43] IMAP4> 1200 DELETE "INBOX.Admin.toto"
[16:00:43] IMAP4< 1200 NO Mailbox does not exist, or must be subscribed to.
** IMAP error on mail.i-run.fr: DELETE error
[16:00:43] IMAP4> 1201 DELETE "INBOX.Admin.toto."
[16:00:43] IMAP4< 1201 OK Folder directory delete punted.
Can you show me show Claws Mail log of a folder-only folder being created then deleted ?
no response in a year, closing now.