Message filters allow you to set up Thunderbird to organize your messages automatically. Filters can move messages to folders, delete them, forward them to other email addresses, and more.
When you receive new mail - This is when Getting New Mail is selected (the default). Filters are applied to new mail in the inbox. This can occur either before Thunderbird does its assessment of the mail as junk, or after. If you have difficulty with filtering the message body, select after classification.
When you send mail - This is when you select After Sending. These filters only apply to an email being sent.
When you archive email - This is when you select Archiving and applies to all mail included in the archive action.
Filters are executed in the order they appear in the list of filters, except when that order is not possible, in which case you will see the message Note: Filter actions will be run in a different order, and the link See execution order. If you click the link, you will see which order is used. For example: If you have a filter that moves a message to another folder, and then further down the list a filter that replies, the reply filter will not work because the message is gone from the folder. In this case, Thunderbird will change the order, so the reply filter will be executed before the move filter.
When you select to run a filter manually you can apply the filter to a specific folder. This is not possible for the automatic execution of filters.
Automatically applied filters are applied only to the inbox, with the exception of Archive and after send filters, which apply only to the mails involved in the action to send or archive. Other folder types are not affected.
1. Click the Application menu button , then click Message Filters.
2. Click New. A Filter Rules dialog box will appear.
3. In the "Filter Name" field, type a name for your filter.
4. Under "Apply filter when", check one of the options or both.
5. In the "Getting New Mail: " dropdown menu, choose either Filter before Junk Classification or Filter after Junk Classification.
6. Choose a property, a test and a value for each rule you want to apply:
7. Choose one or more actions for messages that meet those criteria.
8. Click OK.
9. In the Message Filters dialog, click Run Now if you want the new filter to be applied to messages you’ve already received. The filter will automatically be applied to all new messages after it's saved.
You might want to automatically add a star to all messages from your workplace domain, making them stand out from the rest of your Inbox messages. You could create this filter:
You may like to filter out lower-priority messages from your Inbox to reduce clutter. For example you may have chosen to receive notifications from businesses you patronize, but like to keep them in a separate folder.
First, create a folder called “Promotions” (or something similar) by clicking File > New > Folder. You could then create a filter like this:
Because you selected the "Match any of the following option", all messages that meet any one of these criteria will be automatically be moved from the Inbox to the Promotions folder: