Thunberbird IMAP filtering

**In this post

**IMAP filtering setup in Thunderbird
** Working with training.dat junk filter
** how to work with sent/draft messages
** Copy address book to imap
** When opening put specific inbox first
** Highlighter tool

**IMAP filtering setup in Thunderbird <=

For Thunderbird,IMAP wants to sync all folders under a given account. I want Thunderbird to filter incoming mail into folders that are not synced with IMAP. This requires two accounts. One account is a POP account that never receives email but has all the special folders. The other account is an IMAP account that does check for mail and primarily uses just the Inbox, though trash/junk/drafts/templates/sent/ can also be used.

The basic set up to change from POP to IMAP in Thunderbird:

Go offline: File/Offline/Go off line

Rename the POP account but none of the other settings, for example: Test@test.com becomes Test-pop@test.com: Tools/Account settings/select account/change account name

Set the POP account to not check for messages: Tools/Account settings/select account/select server settings/ then uncheck ‘Check for new messages at startup’ and ‘Check for new messages every _ minutes’, your choice if you want to uncheck ‘automatically download new messages’.

Create a new account in Thunderbird (same username/password as the POP account) but select IMAP as the server type): Tools/Account settings/Add new account (at bottom of account list).

** transferring message filters (note: it may be desirable to only run these filters when a button is clicked, so if both a mobile device and the primary device are both active messages won’t disappear from the mobile device.

Close Thunderbird

Open the POP profile folder. To find it: Tools/Account settings/server settings/ select the pop account, look at the bottom for ‘local directory’

Open the msgFilterRules.dat file in a text editor (notepad?)

Open the IMAP profile folder. To find it: Tools/Account settings/server settings/ select the IMAP account, look at the bottom for ‘local directory’

Open the msgFilterRules.dat file in a text editor (notepad?)

Copy the the POP .dat file text and Paste it into the IMAP .dat  file.

Save and reopen Thunderbird.

** Working with training.dat junk filter<=

There’s only on training.dat per profile, so it will apply ti IMAP as well as POP

** how to work with sent/draft messages<=

http://mesquilla.com/extensions/filtaquilla/ Advanced filtering addon

http://www.xzer.net/harvest/sendfilter   Enable the message filters automatically on sent folder. It adds a checkbox in the filter’s configuration panel, which enables the filters to autorun on the “sent items” folder.

https://addons.mozilla.org/en-US/thunderbird/addon/message-filters-button/

https://addons.mozilla.org/en-US/thunderbird/addon/folder-filters-button/?src=dp-dl-othersby

Go to the config editor, here’s how: http://en.kioskea.net/faq/10960-thunder … fig-editor

Tools/Options/Advanced/General/config editor

Then, right-click to create a new string preference “mail.server.default.applyIncomingFilters” to “true”. Even if it seems odd, do NOT create a boolean setting, it has to be a STRING setting with the value “true”.

This option will run filters on all folders, not only the inbox folder.

Must use: tools/run filters on folder

**Copy address book to imap<=

https://mavistechchannel.wordpress.com/2010/12/21/sync-thunderbird-adress-book-via-imap/
not a sync, just a copy

**When opening put specific inbox first <=

https://github.com/protz/Manually-Sort-Folders/wiki

Manually Sort Folders allows to set the folder highlighted when Thunderbird is opened.

Once installed: Tools/Manually Sort Folders/Extra Settings tab

Also you can put the IMAP inbox account at the top of the folder list

**Highlighter tool <=

https://addons.mozilla.org/en-US/thunderbird/addon/highlighter-222207/?src=userprofile