Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è chiusa e archiviata. Inserire una nuova richiesta se occorre aiuto.

pref() save old value

  • 1 risposta
  • 1 ha questo problema
  • 5 visualizzazioni
  • Ultima risposta di stace75

more options

I have been using autoconfig (thunderbird.cfg) for many years. After switching from 52.9.1 to 60.9.0, my script began to behave strangely. Among other things, it changes the contents of some preferences using the pref() function. In particular, ldap_2.servers.public.uri. Earlier, when calling pref ("ldap_2.servers.public.uri", "new value"), the contents of this line simply changed, but now a new section is created containing the old values ​​"ldap_2.servers.public.uri", "ldap_2.servers.public.filename" and "ldap_2.servers.public.description" under the names "ldap_2.servers.public_1.uri", "ldap_2.servers.public_1.filename" and "ldap_2.servers.public_1.description". On the next change, they become "public_2", and "public" again becomes "public_1". As a result, instead of changing the way I access the server depending on my IP address, I get a new address book every time thunderbird starts.

How to return the old behavior of the pref() function or change the value of named preference in another way?

And by the way, why now getPref("extensions.enabledAddons") always returns NULL?

I could not find answers on Mozilla sites ;(

I have been using autoconfig (thunderbird.cfg) for many years. After switching from 52.9.1 to 60.9.0, my script began to behave strangely. Among other things, it changes the contents of some preferences using the pref() function. In particular, ldap_2.servers.public.uri. Earlier, when calling pref ("ldap_2.servers.public.uri", "new value"), the contents of this line simply changed, but now a new section is created containing the old values ​​"ldap_2.servers.public.uri", "ldap_2.servers.public.filename" and "ldap_2.servers.public.description" under the names "ldap_2.servers.public_1.uri", "ldap_2.servers.public_1.filename" and "ldap_2.servers.public_1.description". On the next change, they become "public_2", and "public" again becomes "public_1". As a result, instead of changing the way I access the server depending on my IP address, I get a new address book every time thunderbird starts. How to return the old behavior of the pref() function or change the value of named preference in another way? And by the way, why now getPref("extensions.enabledAddons") always returns NULL? I could not find answers on Mozilla sites ;(

Tutte le risposte (1)

more options

I figured it out and fixed it. The problem was with the plugin, not with Thunderbird. I apologize