Thunderbird Filters and Tags: Sort Your Inbox on Autopilot
Let Thunderbird file, tag and find your mail for you, with message filters, colored tags and a Quick Filter bar that pulls up anything in seconds.
Monday morning, coffee in hand, and the inbox counter says 214. Somewhere in there sits the one invoice that matters, buried under shipping updates, newsletters and three reminders about a webinar you never signed up for. You could spend twenty minutes dragging messages into folders. Or you could teach Mozilla Thunderbird to do it for you, every time mail arrives.
Thunderbird has three tools for this job. Message filters move and mark mail automatically. Tags put colored labels on messages without moving them. The Quick Filter bar finds anything in the current folder in seconds. This guide sets up all three, using the current Thunderbird (version 159.0 at the time of writing).
Step 1: Build your first message filter
A filter is a simple rule: if a message matches a condition, Thunderbird performs an action. Start with your noisiest sender, the one shop or service that mails you every day.
- Click the Application menu button (the three lines at the top right) and choose Tools > Message Filters. If you use the classic menu bar, it's the same path.
- In the dropdown at the top of the window, pick the account the filter is for.
- Click New. The Filter Rules dialog opens.
- Type a clear name into Filter name, for example "Shop newsletters".
- Under Apply filter when, leave Getting New Mail and Manually Run ticked. Those defaults cover most cases.
- Build the condition: pick a property such as From or Subject, a test such as contains, and type a value, for example the sender's domain.
- Under Perform these actions, choose Move Message to and select a target folder.
- Click OK.
Need more than one condition? Use the plus button at the end of a rule to add another, and decide between Match all of the following (every rule must fit) and Match any of the following (one is enough). "Any" is perfect for a filter that collects mail from four different delivery services into one folder.
The Filter Rules dialog in an older Thunderbird release; the options are the same today.
Step 2: Let filters clean up the mail you already have
New filters only grab new mail automatically. Your existing pile stays put until you run them by hand.
- Open Tools > Message Filters again.
- Select the filter in the list.
- In the Run selected filter(s) on dropdown, pick the folder you want to clean, usually the Inbox.
- Click Run Now.
Watch the message list shrink. This is also the best way to test a fresh rule. If the wrong messages disappear, open the target folder, move them back, and tighten the condition, for example by matching the full sender address instead of a single word.
Step 3: Get the order and the timing right
Filters run from top to bottom in the Message Filters list. Use Move to Top, Move Up and the other move buttons to put your most important rules first. One trap: once a filter moves a message out of the Inbox, later filters may not see it anymore. If one filter combines several actions, Thunderbird sometimes has to reorder them. In that case the dialog shows the note "Filter actions will be run in a different order" with a See execution order link that reveals the real sequence.
The Getting New Mail checkbox has a dropdown with Filter before Junk Classification and Filter after Junk Classification. "After" is the safer choice for filters that move mail out of the Inbox, because the junk filter gets its turn first and spam doesn't slip into your tidy folders. Two other triggers are useful too: After Sending works on messages you send, and Archiving applies when you archive mail.
Trick 1: Tags for mail that should stay in the Inbox
Not everything deserves its own folder. A message about the family trip can stay where it is and simply wear a colored label. That's what tags are for.
Select a message and press a number key: 1 to 9 apply or remove the matching tag, and 0 removes all tags from the message. By default, Thunderbird ships with tags such as Important, Work, Personal, To Do and Later. You can also right-click a message and choose Tag to pick one from the list or create a new one.
Tags and filters work great together. Give a filter the action Tag Message instead of Move Message to, and every mail from your accountant lands in the Inbox already marked "Work". You see it immediately, and it's still easy to find later.
Trick 2: The Quick Filter bar finds anything in seconds
The Quick Filter bar is the fastest search in Thunderbird because it only looks at the folder you have open. Press Ctrl+Shift+K or click Quick Filter above the message list. Press Esc to close it again.
Type a word, and buttons appear that limit the search to Sender, Recipients, Subject or Body. Next to the search box you'll find toggles for Unread, Starred, Contact (people in your address book), Tags and Attachment. Combine them: "Unread" plus "Attachment" shows every unopened mail that came with a file.
Click Tags and a second row appears with your tag names. A dropdown switches between Any of (at least one selected tag) and All of (every selected tag). The pin button on the far left keeps your filter active when you switch folders, handy when you're working through several accounts in a row.
Trick 3: Saved searches for views you open every day
Want a permanent "everything tagged To Do, across all accounts" view? Build a saved search. It looks like a folder, but it's a live search that updates itself.
- Select an account in the folder pane.
- Open File > New > Saved Search (press Alt if the menu bar is hidden).
- Give it a Name, click Choose and tick the folders it should search.
- Set the rules, for example Tags contains "To Do", and click Create.
Keep the folder selection small, because every extra folder slows the search down. Leave Search Online off unless you really need to search message bodies stored only on the server.
When a filter doesn't fire
Most failures have simple causes. The filter belongs to the wrong account, so check the account dropdown in the Message Filters window. The condition is too narrow: "is" needs an exact match, "contains" is more forgiving. Automatic filters only work on mail arriving in the Inbox, so messages that your provider already sorts into a server folder won't be touched. In that case, run the filter manually on that folder as shown in Step 2.
Our verdict
Anyone who opens Thunderbird to a wall of unread mail benefits from this, and it only takes a few minutes. Do one thing today: create a single filter for your noisiest sender and run it on your Inbox. Once you see how much disappears, the next five rules will write themselves.




