Bug 2653

Summary: creating a folder to a DavMail IMAP email box fails due to unexpected LIST reply
Product: Claws Mail (GTK 2) Reporter: Stijn Hoop <stijn>
Component: Folders/IMAPAssignee: users
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 3.8.0   
Hardware: PC   
OS: Linux   

Description Stijn Hoop 2012-04-27 11:34:10 UTC
Creating a folder on my Exchange account, proxied by DavMail, fails.

Checking the logs I see this as the first actions taken by Claws:

[11:08:32] IMAP4> 148 NOOP 
[11:08:32] IMAP4< 148 OK NOOP completed 
[11:08:32] IMAP4> 149 LIST "" "INBOX/test01" 
[11:08:32] IMAP4< 149 NO Folder not found 
** IMAP error on localhost: LIST error
** can't create mailbox: LIST failed

Creating a test folder on my Dovecot backed account gives me this network log:

[11:08:56] IMAP4> 408 NOOP 
[11:08:56] IMAP4< 408 OK NOOP completed. 
[11:08:56] IMAP4> 409 LIST "" "test01" 
[11:08:56] IMAP4< 409 OK List completed. 
[11:08:56] IMAP4> 410 CREATE test01 
[11:08:56] IMAP4< 410 OK Create completed. 
[11:08:56] IMAP4> 411 LIST "" "test01" 
[11:08:56] IMAP4< * LIST (\HasNoChildren) "." "test01" 
[11:08:56] IMAP4< 411 OK List completed. 
[11:08:56] IMAP4> 412 SUBSCRIBE test01 
[11:08:56] IMAP4< 412 OK Subscribe completed. 

So obviously Dovecot responds very differently to the initial LIST. I do not know whether DavMail or Dovecot is in error, but I would argue that Claws could accept the DavMail LIST response as well, as it clearly indicates that the folder does not in fact exist yet.