MozillaZine

Is there any automation for bulk adding eMail accounts?

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

Post Posted July 6th, 2019, 11:38 am

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: 3247
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 6th, 2019, 12:44 pm

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: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 6th, 2019, 1:07 pm

finally )) Can you incorporate that code into the main one please ?

xdelicacyx
 
Posts: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 6th, 2019, 1:13 pm

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: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 6th, 2019, 2:02 pm

by the way, ur unable to create a code for bulk deletion ? didn't get an answer about it.

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

Post Posted July 6th, 2019, 4:02 pm

Sorry, I'm not interested in bulk deletion.

xdelicacyx
 
Posts: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 6th, 2019, 5:47 pm

Anyways, as long as "trust junk mail headers by" is not selected, junk filtering will remain inactive.

xdelicacyx
 
Posts: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 7th, 2019, 10:43 am

None of your password methods work Morat.

I tried in pop3 & in imap too.

xdelicacyx
 
Posts: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 7th, 2019, 1:01 pm

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: 81
Joined: April 16th, 2015, 3:15 am

Post Posted July 7th, 2019, 1:02 pm

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..

Return to Thunderbird Support


Who is online

Users browsing this forum: Google [Bot] and 5 guests