|
方法一:
D:\svn\code\thunderbird17.0.8\mail\base\content\folderPane.js
_modes: {
/**
* The all mode returns all folders, arranged in a hierarchy
*/
all: {
__proto__: IFolderTreeMode,
generateMap: function ftv_all_generateMap(ftv) {
let accounts = gFolderTreeView._sortedAccounts();
// force each root folder to do its local subfolder discovery.
MailUtils.discoverFolders();
// return [new ftvItem(acct.incomingServer.rootFolder)
// for each (acct in accounts)];
var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].
getService(Components.interfaces.nsIStringBundleService);
var bundle = strBundleService.createBundle("chrome://messenger/locale/messenger.properties");
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
var strtitle = bundle.GetStringFromName("localFolders");
let ftvItems = [new ftvItem(acct.incomingServer.rootFolder)
for each (acct in accounts)];
for(var j = 0; j < ftvItems.length; j++)
{
if(ftvItems[j].text == strtitle)
{
ftvItems.splice(j, 1);
}
}
return ftvItems;
}
},
二:扩展
https://addons.mozilla.org/zh-CN/thunderbird/addon/hide-local-folders/?src=search
hide_local_folders_english_only-1.03-tb.rar
(3.42 KB, 下载次数: 0)
|
|