Polimath Filters 3.2.1
作者: Stephen Haptonstahl
Replaces Thunderbird's filter editor with one that supports regular expressions, nested AND / OR / NOT logic, and Unicode lookalike (homoglyph) detection. Runs on new mail in folders you choose, with optional automatic backups. Collects nothing.
このアドオンについて
Polimath Filters is a more powerful filter editor for Thunderbird. Conditions can be any combination of AND, OR, and NOT groups, any condition can match a regular expression, and two operators catch phishing that uses lookalike Unicode characters (for example a Cyrillic "а" in "pаypal").
Where to find it
Polimath Filters has no toolbar button. Open its editor from Tools → Add-ons and Themes (Ctrl+Shift+A), then click the wrench icon (Add-on Options) on the Polimath Filters card. The editor opens in a new tab. Everything happens in that tab. Click ? Instructions at any time for in-app help, and hover any ? icon for help on that control.
Getting started
Managing filters
Tips
Compatibility
Requires Thunderbird 121 or later. Most recently tested on Thunderbird 159.0.
Privacy
Polimath Filters collects nothing: no accounts, no analytics, no network requests. Mail is read only inside Thunderbird on your computer, and filters are stored in Thunderbird's local extension storage. Optional automatic backups are saved as messages in a mail account you choose; on a server-based account, Thunderbird syncs them to that server.
Source code, issue tracker, and full documentation: github.com/shaptonstahl/polimath-thunderbird-filters
Where to find it
Polimath Filters has no toolbar button. Open its editor from Tools → Add-ons and Themes (Ctrl+Shift+A), then click the wrench icon (Add-on Options) on the Polimath Filters card. The editor opens in a new tab. Everything happens in that tab. Click ? Instructions at any time for in-app help, and hover any ? icon for help on that control.
Getting started
- Choose folders to watch. Click Monitored folders… and check the folders whose new mail should be filtered (usually each account's Inbox). Watch only the folders you need; every monitored folder adds work on new mail.
- Create a filter. Click + New Filter and give it a name.
- Pick its folders. Under Folders, check which monitored folders this filter applies to.
- Build the conditions. The top group is AND or OR (click Switch to OR/AND). Use + Condition to add a test and + Group to nest another group. Wrap in NOT inverts a condition or group. Each condition is a field (Subject, From, From name, To, CC, BCC, Body, Has attachment, Sender in address book), an operator (contains, starts/ends with, matches regex, has confusable character, confusable with, …), and a value. The Aa button toggles case sensitivity.
- Add actions. Click + Add action: mark read/unread, add/remove star, add/remove tag, or mark as spam.
- Choose how the rule ends. In After this rule matches, pick Continue processing (later filters still run), Do not process with subsequent rules, Move to a folder, or Delete.
- Click Save.
Managing filters
- Filters run top to bottom, and every matching filter applies. Drag the ⠿ handle to reorder.
- The switch next to each filter enables or disables it. × deletes it.
- ▶ next to a filter runs just that filter on a folder you pick. ▶ Run all on folder… runs every enabled filter. Both offer Dry Run, which lists the messages that would match without changing anything. Try a dry run before running a new filter for real.
- Backups… turns on automatic backups, saved as messages in a "Polimath Filters Backups" folder in the account you choose: the newest of each day for 30 days, then the newest of each month. Restore from mail… brings any backup back, and after a reinstall the editor offers to restore the newest one.
- Export… and Import… save and load filters as JSON, for backup or to move them to another profile. Files from older versions are upgraded as they are imported, and anything that did not carry over (a missing move target, folder, or tag, an invalid regex) is listed under that filter.
- Removing the add-on deletes your filters. To upgrade, install the new version over the old one instead of removing it first.
Tips
- Regular expressions use JavaScript syntax. An invalid pattern is flagged before you can save.
- has confusable character (no value needed) matches text that mixes in lookalike characters. confusable with matches text that looks like your value, e.g.
paypalalso matches "pаypal" spelled with a Cyrillic "а". - Body, CC, and BCC conditions need the full message, so they are slower on large folders.
Compatibility
Requires Thunderbird 121 or later. Most recently tested on Thunderbird 159.0.
Privacy
Polimath Filters collects nothing: no accounts, no analytics, no network requests. Mail is read only inside Thunderbird on your computer, and filters are stored in Thunderbird's local extension storage. Optional automatic backups are saved as messages in a mail account you choose; on a server-based account, Thunderbird syncs them to that server.
Source code, issue tracker, and full documentation: github.com/shaptonstahl/polimath-thunderbird-filters