Discussion:
IMAP error on new accounts
Alex Hudson
2008-09-14 16:28:47 UTC
Permalink
Hey everyone,

When you connect up to a Bongo IMAP account for the first time in
Thunderbird, you get an error: "No such folder". It's not really an
error - you can ignore it and everything is fine - but I struggle to
understand what the problem is.

The IMAP session says this:

5 lsub "" "*"
* LSUB () "/" "INBOX"
* LSUB () "/" "archives"
* LSUB () "/" "drafts"
5 OK LSUB completed
6 list "" "INBOX"
* LIST () "/" "INBOX"
6 OK LIST completed
7 list "" "Trash"
7 NO LIST no such folder
8 create "Trash"
8 OK CREATE completed
9 subscribe "Trash"
9 OK SUBSCRIBE completed


So, Thunderbird tries to examine the contents of the Trash folder, which
doesn't exist, so it then creates it. I could understand if it couldn't
create the folder and then did the error message, but it doesn't.

Questions, then:

a. are we responding to the LIST correctly? I think so, because it's
asking for the subscription list, and we're not telling it Trash exists.

b. does this happen on other servers, and if not, why not?

Cheers,

Alex.
Alex Hudson
2008-09-14 18:59:28 UTC
Permalink
Post by Alex Hudson
a. are we responding to the LIST correctly? I think so, because it's
asking for the subscription list, and we're not telling it Trash exists.
b. does this happen on other servers, and if not, why not?
Lance sent me a very useful reply but neglected to copy in the list. It
seems like other servers have this exact same problem; the only issue is
whether or not they create the folder when the account is created, it seems.

This has some more information: http://kb.mozillazine.org/IMAP_Trash_folder

This seems to be a special case of a more general IMAP problem; in that
you can't really determine the name of "special" folders: INBOX is
reliably there, but anything else could be called by some
different/foreign name and there's no way to ask the IMAP server what
that name is.

Any thoughts on how we can fix this would be appreciated. One easy
option is simply to give each user a mail Trash folder, but I don't know
if we're just "fixing" Tbird by doing that?

Thanks,

Alex.

Loading...