Open Bug 502900 Opened 13 years ago Updated 13 years ago
.has Sub Folders returns false until I call folder .sub Folders .
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?
You need to log in before you can comment on or make changes to this bug.