Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Эта тема была закрыта и архивирована. Если вам нужна помощь, задайте новый вопрос.

pref() save old value

  • 1 ответ
  • 1 имеет эту проблему
  • 5 просмотров
  • Последний ответ от 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 ;(

Все ответы (1)

more options

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