Is there any automation for bulk adding eMail accounts?

User Help for Mozilla Thunderbird
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

Does anybody know why this doesn't work to get rid of junk settings:

inServer.spamSettings.level = 0; // [uncheck] Enable adaptive junk mail controls for this accountManager

?
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Is there any automation for bulk adding eMail accounts?

Post by morat »

The spamSettings.level changes after you change the spam setting with the mouse. It's odd that it doesn't work.

Code: Select all

// show spamSettings.level for each server

(function () {

  var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].
    getService(Components.interfaces.nsIMsgAccountManager);
  var allServers = accountManager.allServers;
  for (var i = 0; i < allServers.length; i++) {
    var currentServer = allServers.queryElementAt(i, Components.interfaces.nsIMsgIncomingServer);
    console.log(currentServer.prettyName + " - spamSettings.level: " + currentServer.spamSettings.level);
  }

})();
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

finally )) Can you incorporate that code into the main one please ?
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

ugh, i don't understand your last code, all i realized is that if i use it, after deselecting the junk filter manually, the next created identity has junk disabled but for the account i disabled only, so that doesn't help much to me
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

by the way, ur unable to create a code for bulk deletion ? didn't get an answer about it.
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Is there any automation for bulk adding eMail accounts?

Post by morat »

Sorry, I'm not interested in bulk deletion.
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

Anyways, as long as "trust junk mail headers by" is not selected, junk filtering will remain inactive.
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

None of your password methods work Morat.

I tried in pop3 & in imap too.
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

I don't think passwords are responsible, cause with a password revealer, the right password was entered in the database,
& through firefox, gmail tells me i should try to loging later or with another computer as i've tried to login too many times..
xdelicacyx
Posts: 111
Joined: April 16th, 2015, 3:15 am

Re: Is there any automation for bulk adding eMail accounts?

Post by xdelicacyx »

Strangely, there must be an error in your code, cause when i try to test sending email, it goes picking my "default smtp" server instead of the one created per email..
Post Reply