Checking for new messages in other folders - Thunderbird

来自WordPress中文文档
跳转至: 导航搜索

POP

You can only check for new messages in the Inbox folder on a POP server. However, some webmail add-ons can be configured to check for new mail in other folders. Any of those messages are downloaded to the inbox and a special header added so that a message filter can test what folder they came from.

IMAP

Thunderbird by default only checks for new mail in the Inbox folder for a IMAP account. Rather than manually checking for new mail in other remote folders by opening them you can configure Thunderbird to automatically check for new messages in other folders. There are two ways to do this:

  • Go to a remote folder, right-click on it, select Properties, and check the checkmark for "Check this folder for new messages". You can do this for all or just some of the remote folders. If you need to do this for lots of folders install the FolderCheck addon. It adds "Check this folder for new messages" to the folders context menu so that you don't have to select Properties.
  • Set mail.check_all_imap_folders_for_new true. This will make Thunderbird check every remote folder for new mail. The downside is there is no way to exclude a specific folder (such as a junk mail folder). This preference broke around v0.6 and started working again in v1.0.2. Its recommended you modify this preference using the Config Editor, but you could also add it in prefs.js or the optional user.js file with a text editor.

You may want to also check the checkmark for "Tools → Options → Advanced → Show expanded columns in the folder pane" and then click on "Unread" and/or "Total" in the small column control at the upper right corner of the folder pane.

If you do that you could also add the following to the optional userChrome.css file in the chrome directory in the profile to make it easier to see which folders have new mail:

/* Turn the font red and bold if folder has unread mail */
treechildren:-moz-tree-cell-text(hasUnreadMessages-true) {
color: red !important;
}

If you are the admin for the IMAP server you may be able to configure it to check for new mail in all folders and notify the email client using the IDLE command. For example you could do this with a Courier IMAP server by setting IMAP_CHECK_ALL_FOLDERS=1 and IMAP_ENHANCEDIDLE=1 in the IMAPD file and installing the File Alteration Monitor (FAM) package. This would effect every email client using that IMAP server regardless of whether or not the user wanted to check all folders.

If Thunderbird doesn't recognize that a folder contains unread messages try setting mail.imap.use_status_for_biff true. It causes Thunderbird to explicitly select each folder to update the message summaries, rather than using the STATUS command. It has more overhead, but some IMAP servers don't return STATUS correctly.

Views

The Advanced Folder View list box on top of the folder pane defaults to "All Folders". It can be set to "Unread Folders" using the left or right arrows. This will display only folders that Thunderbird knows has new messages. It "knows" about any new messages stored in POP accounts or Local Folders, any remote folders that you've opened, and any remote folders that its configured to check for new mail in that folder. It doesn't know about any new messages in webmail folders unless you used a webmail add-on and checking for new mail downloaded them to the Inbox folder.

You could also create a virtual folder using saved search that tests [Status] [is] [New] for all of the folders you're interested in. It can test folders across multiple accounts, and is displayed with a special icon in the folder pane. You could also have it test [Status] [isn't] [Read] - not all unread messages are necessarily new messages.

See also

External links