Checking for new messages in other folders - Thunderbird

From MozillaZine Knowledge Base
Revision as of 09:39, 19 November 2007 by Tanstaafl (talk | contribs) (Realized tagged could be mis-interpreted.)
Jump to navigationJump to search

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.

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 in POP accounts, Local Folders, any remote folders that you've opened, and any remote folders that its configured to check for new mail in that folder.

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.
  • Set user_pref("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.

See also

External links