MozillaZine

[TB] unhide account.incomingServer

Talk about add-ons and extension development.
metju312
 
Posts: 10
Joined: September 6th, 2017, 1:25 am

Post Posted September 12th, 2017, 12:55 am

Hi,

I already hide one of my incomingServer:
Code: Select all
    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.

Question: How to get back this server?

metju312
 
Posts: 10
Joined: September 6th, 2017, 1:25 am

Post Posted September 12th, 2017, 4:23 am

I already resolve this (for: dev@gmail.com):

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

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests