Open Bug 502900 Opened 15 years ago Updated 2 years ago

folder.hasSubFolders returns false until I call folder.subFolders.

Categories

(Thunderbird :: Folder and Message Lists, defect)

defect

Tracking

(Not tracked)

People

(Reporter: bwinton, Unassigned)

Details

Attachments

(1 file)

I was trying to fix Bug 465269, when I ran into a failing check at http://mxr.mozilla.org/comm-central/source/mailnews/base/resources/content/folderWidgets.xml#434 for a folder that I knew had sub-folders. (It was the root folder of a server, I believe.) With the attached patch applied, when I start up, I see in the console log: XXXXXX folder.hasSubFolders 1 =false folder.hasSubFolders 2 =false folder.hasSubFolders 3 =true which seems, in the words of jminta, "very sad and a scary bug". :) I've got a workaround, so it doesn't really block 465269. Thanks, Blake.
MailUtils.discoverFolders is the current canonical way to force this: http://mxr.mozilla.org/comm-central/source/mail/base/modules/MailUtils.js#69 Bienvenu, perhaps this should be explicitly compelled during the creation of the folders or more transparently in an on-demand fashion?
OS: Mac OS X → All
Hardware: x86 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: