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
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?
Probably you need this: https://developer.mozilla.org/en/Using_nsIXULAppInfo#Version
.