Thunderbird extension - unhide account.incomingServer -
i hide 1 of incomingserver:
var acctmgr = cc["@mozilla.org/messenger/account-manager;1"].getservice(ci.nsimsgaccountmanager); var accounts = acctmgr.accounts; accounts.length; // =2 var account = accounts.queryelementat(0, ci.nsimsgaccount); account.incomingserver.hidden = true; accounts.length; // =1
i lost 1 of account / incomming server - wanted (hide account on left panel).
question: how server / account?
here have tip: hidden flag desc
the server can retrieved account manager name using various find methods, nsimsgaccountmanager's getaccounts , getallservers methods won't return server/account. - how that?
i resolve (for: dev@gmail.com):
acctmgr.findserver('dev', 'gmail.com', 'pop3').hidden = false;
Comments
Post a Comment