Thunderbird extension - unhide account.incomingServer

80 views Asked by At

I already hide one of my 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 one of my account / incomming server - which i wanted (hide account on left panel).

Question: How to get back this server / account?

Here i have some tip: hidden flag desc

The server can be retrieved from the account manager by name using the various Find methods, but nsIMsgAccountManager's GetAccounts and GetAllServers methods won't return the server/account. - but how to do that?

1

There are 1 answers

0
TheHorizon On

I already resolve this (for: [email protected]):

acctMgr.FindServer('dev', 'gmail.com', 'pop3').hidden = false;