為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Where and how is the setting(s) for always checking IMAP folders for new mail stored?

  • 6 回覆
  • 0 有這個問題
  • 最近回覆由 frax

more options

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

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

所有回覆 (6)

more options

- highlight a desired folder - rightclick and select 'properties' - put a tickmark on the entry to check mail for this folder.

有幫助嗎?

more options

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).

由 frax 於 修改

有幫助嗎?

more options

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.

有幫助嗎?

more options

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 :-)

有幫助嗎?

more options

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}@

有幫助嗎?

more options

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

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題