Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetSubFolders / nsISimpleEnumerator question

3 views
Skip to first unread message

Axel Grude

unread,
Nov 25, 2009, 5:24:11 AM11/25/09
to
Hello I have some users complaining about wrong sorting of a subfolders
menu in a Thunderbird extension (in TB2 only). Looks like GetSubFolders
returns a list sorted by date and not alphanumerically.

Q: where can I determine the sorting?

Q: failing that, can I copy the results for this nsISimpleEnumerator to
a sorted array, and how?

current Code snippet:

switch (QuickFolders.Util.Application()) {
case 'Postbox':
// was appver<2
subfolders = folder.GetSubFolders();
break;
case 'Thunderbird':
if (appver<3)
subfolders = folder.GetSubFolders();
else
subfolders = folder.subFolders;
break;
case 'SeaMonkey':
subfolders = folder.subFolders;
break;
}


thanks in advance
Axel

Diego Diaz

unread,
Dec 14, 2009, 10:32:38 AM12/14/09
to
Sorry, I can't understand your question, but I want to ask you about
your code.

I have an extension that is working fine with TB2, in TB3 GetSubFolders
() doesn't work, so I understand that I have to use a case like yours.
How I can know what version of Tb is running? How do you get the
appver variable value?

Zorkzero

unread,
Dec 14, 2009, 11:02:49 AM12/14/09
to
0 new messages