Where and how is the setting(s) for always checking IMAP folders for new mail stored?
Hi,
I'm trying to automate / batch set the "When getting messages for this account, always check this folder"-setting for a large number of folders so I'm trying to figure how Thunderbird stores the setting(s) of which folders to always check for new mail.
Checking the `global-messages-db.sqlite` it seems like all folders that have the "always check folder"-setting have a `indexingPriority` value of 30 in the `folderLocations` table, but simply setting it to 30 for other folders does not enable the "always check folder"-setting so I guess that is set elsewhere. Where?
Also what other settings are set for the folder when enabling "When getting messages for this account, always check this folder" ?
Thanks in advance /frax
Alle Antworten (6)
- highlight a desired folder - rightclick and select 'properties' - put a tickmark on the entry to check mail for this folder.
Yes, yes, thanks for your answer, but that's how to do it via the GUI that won't help me do what I want.
What I'm asking is how that setting is stored. In which files / databases with folder-name / folder-path or maybe with the `folderLocations` table `id` in the db for the folder (in case all folders are listed in one setting) or in some file with the value for each folder or in the DB somewhere I missed it. That would allow me to automate the setup of hundreds folders to get this value (for hundreds of folder among many hundreds of folders that should not be always checked so the "check all" option is no alternative).
Geändert am
I've never had that question before. To my knowledge, all settings are either in prefs.js for accounts, and the individual msf files for folders. A developer could give you specifics, but this forum is staffed by volunteers to assist in using the GUI. Mayble, someone else here may have the detailed info you're requesting.
ok, thx, I'll dig deeper in the msf-files then ... couldn't really find it there when looked before ... and wait for somebody that might know finds this post :-)
checking the msf files for several folders turning on and off the the "always check" box in the GUI I see these attributes being changed:
(9E=ns:msg:db:row:scope:dbfolderinfo:all) (85=recipients) (86=date) (88=flags) (B0=indexingPriority)
The ID (9E, 85, 86, 88 & B0) varies from folder to folder but the name of the attributes are always the same ...
It looks like the date flag ( [1:^9E(^88^86)] below ) is turned on when enabling the "always check" as well as setting indexingPriority to 30 ( [1:^9E(^B0=30)] below ) something I saw in the global-messages-db.sqlite folderLocations table as well.
Turning it off again the recipients flag is set and the indexingPriority is set to 20.
I'll dig some more and see if I can use this to automate it the way I want :-)
--- a.msf - Always check folder ---
@$${12{@ [1:^9E(^88^86)] @$$}12}@
@$${13{@ [1:^9E(^B0=30)] @$$}13}@
--- a.msf - Don't always check folder --- @$${16{@ [1:^9E(^88^85)] @$$}16}@
@$${17{@ [1:^9E(^B0=20)] @$$}17}@
seems like the only consistent change in the .msf is setting the indexingPriority (the setting of the other attribute was just coincidental)... so now some testing setting that manually in the DB and in the msf