Closed Bug 1563932 Opened 6 years ago Closed 6 years ago

Unable to add a specific command in "error console" for the Junk Settings..

Categories

(Thunderbird :: Untriaged, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wolfgang7833, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0.3) Gecko/20100101 Firefox/67.0.3

Steps to reproduce:

Someone offered me a code to add multiple accounts at mozillazine,
that i can use in "error console", nevertheless, one string doesn't allow
disabling junk settings.. & we don't know why..

Actual results:

Disabling adaptive junk mail in junk settings doesn't seem to function:

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

Expected results:

That section should become unchecked..

Can someone correct that inServer line ?

Strangely, when unchecked through a manual clicking process, the result makes sense, & it's strangely the only section
that doesn't seem possible to activate through the error console:

// 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);
}

})();

Sorry, this doesn't appear to be a bug and BMO is not a support forum.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.