In which profile sub folder are AddOn settings stored?

User Help for Mozilla Thunderbird
Post Reply
thoste
Posts: 317
Joined: June 7th, 2003, 12:45 am

In which profile sub folder are AddOn settings stored?

Post by thoste »

Possibly I have accidentially wiped all the settings of all my Thunderbird AddOns.

In which sub folder of my Thunderbird Profile folder are these AddOn settings stored?

I mean not the AddOns itself but their settings?

Thomas
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: In which profile sub folder are AddOn settings stored?

Post by tanstaafl »

Add-on settings are normally stored along with the other settings in the prefs.js file. That's stored in the profile's directory, not one of its child directories.

I confirmed that with the ImportExportTools Ng add-on where I found user_pref("extensions.importexporttoolsng.autobackup.dir", "D:\\Backups\\Thunderbird"); in prefs.js, which specifies the location of the backup directory I set.
DaveRo
Posts: 69
Joined: May 9th, 2008, 10:00 pm

Re: In which profile sub folder are AddOn settings stored?

Post by DaveRo »

However, the newer Mail Extension addons store their data in
[profile.folder]/storage/default
the same as Firefox Web Extensions.

So it depends on what version of TB and what addon.

There are also hybrid addons (called web experiments). I suspect they use the new method, but I haven't got one to check.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: In which profile sub folder are AddOn settings stored?

Post by tanstaafl »

The ImportExportTools NG add-on is one of the newer mail extensions.

C:\Users\Eric\AppData\Roaming\Thunderbird\Profiles\feu8hx1l.default-release\storage\default had been empty but after installing ManuallySortFolders for version 78.9.1 it has a moz-extension+++90ed323a-b972-4bad-bdb6-e7b5403bc827^userContextId=4294967295 directory which has mainly just a manifest file and a 3647222921wleabcEoxlt-eengsairo.sqlite SQLITE file.

I can also find settings for ManuallySortFolders in prefs.js. I also installed the 88.0b2 beta and installed the same add-on there. It creates a https+++addons.thunderbird.net directory which has a data.sqlite file but it still appears to store its settings in prefs.js. The add-ons settings only appeared in that file after I modified the add-ons default settings.

Its confusing as I can find writeups that talk about using the storage API (recommending using the storage.local API so that it will persist when a user clears history etc. for privacy reasons rather than the windows.localStorage API) for data and settings but that doesn't explain why the add-ons modified settings appeared in prefs.js. There are also some experimental wrapper APIs that can be used.

https://thunderbird.topicbox.com/groups ... 88da705a56
https://thunderbird.topicbox.com/groups ... 034809ca6d
https://github.com/thundernest/addon-de ... apper-apis
DaveRo
Posts: 69
Joined: May 9th, 2008, 10:00 pm

Re: In which profile sub folder are AddOn settings stored?

Post by DaveRo »

My recollection from reading the developer forum (but not being concerned because my new pure MX addon used the storage API) was that people wanted to use prefs.js in MX ( I can't remember why) but couldn't. Since then John B built his windowlistener thing, and lots of people built 'experiments' and maybe these can use prefs in the traditional way. I'm surprised.

Then there are people updating old addons, with data in prefs, who would have wanted to carry those forward to the MX version. I had to do that in Firefox, and it will leave the old prefs behind. Try deleting them and see whether they return.

I suppose some developers might allow for downgrading...
Post Reply