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
?
Is there any automation for bulk adding eMail accounts?
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: Is there any automation for bulk adding eMail accounts?
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);
}
})();
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
finally )) Can you incorporate that code into the main one please ?
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
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
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
by the way, ur unable to create a code for bulk deletion ? didn't get an answer about it.
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: Is there any automation for bulk adding eMail accounts?
Sorry, I'm not interested in bulk deletion.
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
Anyways, as long as "trust junk mail headers by" is not selected, junk filtering will remain inactive.
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
None of your password methods work Morat.
I tried in pop3 & in imap too.
I tried in pop3 & in imap too.
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
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..
& through firefox, gmail tells me i should try to loging later or with another computer as i've tried to login too many times..
-
- Posts: 111
- Joined: April 16th, 2015, 3:15 am
Re: Is there any automation for bulk adding eMail accounts?
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..