Hi, I'm having a problem with the Sylpheed mail client and dovcot 1.0.rc15. Sylpheed does not like how dovecot is returning LIST output so it cannot see subfolders. Note: Sylpheed 2.4 actually works with the same server so apparently something in a newer version of Sylpheed has changed. This is some dialog with the Sylpheed mailing list:> > Apparently it sees them but they're not making it into the tree: > > > > [18:06:12] IMAP4> 11 LIST "" "*" > > getting list of "" ... > > IMAP4< * LIST (\HasNoChildren) "." "Lists.Heimdal" > > folder 'Lists/Heimdal' found. > > IMAP4< * LIST (\HasNoChildren) "." "Lists.JCIFS" > > folder 'Lists/JCIFS' found. > > IMAP4< * LIST (\HasNoChildren) "." "LearnAsSpam" > > folder 'LearnAsSpam' found. > > IMAP4< * LIST (\HasNoChildren) "." "Spam" > > folder 'Spam' found. > > IMAP4< * LIST (\HasNoChildren) "." "Trash" > > folder 'Trash' found. > > IMAP4< * LIST (\HasNoChildren) "." "Sent" > > folder 'Sent' found. > > IMAP4< * LIST (\HasNoChildren) "." "Drafts" > > folder 'Drafts' found. > > IMAP4< * LIST (\HasNoChildren) "." "Saved" > > folder 'Saved' found. > > IMAP4< * LIST (\HasNoChildren) "." "INBOX" > > folder 'INBOX' found. > > IMAP4< * LIST (\HasNoChildren) "." "TMP.STMP" > > folder 'TMP/STMP' found. > > [18:06:12] IMAP4< 11 OK List completed. > > imap_get_part_folder_list(): get root folders > > append 'LearnAsSpam' > > append 'Spam' > > append 'Trash' > > append 'Sent' > > append 'Drafts' > > append 'Saved' > > append 'INBOX' > > imap_get_part_folder_list(): get folders under 'LearnAsSpam' > > imap_get_part_folder_list(): get folders under 'Spam' > > imap_get_part_folder_list(): get folders under 'Trash' > > imap_get_part_folder_list(): get folders under 'Sent' > > imap_get_part_folder_list(): get folders under 'Drafts' > > imap_get_part_folder_list(): get folders under 'Saved' > > imap_get_part_folder_list(): get folders under 'INBOX' > > Setting folder info... > > empty folder > > > > Note that TMP.STMP was created through Sylpheed but after a rebuild > > it's gone .... > > This breaks in the implementation because both "Lists" and "TMP" are not > listed separately and are not recognised as root folders by Sylpheed. As I > read the code, only folders without a '/' are recognised as root folders > (considering the '.' namespace that is used here). It could be that > Sylpheed 2.4.0 parsed the LIST return values differently. > > For Thomas White it's the same problem. Folders "Academic" and > "Theatre" are not recognised as root folders. > > On the contrary, for example Google Mail returns all root folders > separately. > > Which behaviour exactly is IMAP4 compliant remains to be investigated.Basically Sylpheed does not like the dots (which represent slashes) and would prefer to see each folder "listed separately". Can anyone comment regarding proper LIST output and what clients should be expected to handle? Who's bug is this and what is the path of least resistance to fixing it? Mike
On 7/8/2008, Michael B Allen (ioplex at gmail.com) wrote:> dovcot 1.0.rc15.Upgrade, this is very old... -- Best regards, Charles
On Tue, 2008-07-08 at 21:42 -0400, Michael B Allen wrote:> > This breaks in the implementation because both "Lists" and "TMP" are not > > listed separately and are not recognised as root folders by Sylpheed. As I > > read the code, only folders without a '/' are recognised as root folders > > (considering the '.' namespace that is used here). It could be that > > Sylpheed 2.4.0 parsed the LIST return values differently. > > > > For Thomas White it's the same problem. Folders "Academic" and > > "Theatre" are not recognised as root folders. > > > > On the contrary, for example Google Mail returns all root folders > > separately.GMail's IMAP shouldn't be used as an example. It's one of the least standards compliant IMAP servers there is.> > Which behaviour exactly is IMAP4 compliant remains to be investigated. > > Basically Sylpheed does not like the dots (which represent slashes)Dovecot can be configured to use '/' (namespace separator = /), but client shouldn't care about that.> and would prefer to see each folder "listed separately".I assume it means that Dovecot returned "TMP.STMP" without returning "TMP". This is valid and several other IMAP servers do the same thing (Cyrus, Courier). You can even find this from RFC 3501: C: A85 LIST "" * S: * LIST () "." foo.bar S: A85 OK LIST completed> Can anyone comment regarding proper LIST output and what clients > should be expected to handle?http://imapwiki.org/ClientImplementation/MailboxList> Who's bug is this andSylpheed's.> what is the path of least resistance to fixing it?If you just want to get this fixed for yourself, you can create the "Lists" and "TMP" mailboxes and they get returned. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080712/b4d2bf84/attachment-0002.bin>