Important
Made with Claude Sonnet 4.5 and Gemini 3
I plan rewriting it manually later.
Automate IMAP folder management via message filter rules.
- Synchronization: Parse
msgFilterRules.dat-> detect missing IMAP folders -> create them - Discovery: Scan inbox -> extract sender domains -> propose folder hierarchy -> generate filter rules
- Organization: Auto-structure senders as
Domain/Userhierarchies
More in BRD
- Open Thunderbird
- Go to
Tools->Developer Tools->Debug Add-ons(orabout:debugging) - Click "This Thunderbird"
- Click "Load Temporary Add-on"
- Select
manifest.jsonfrom your folder - Extension loads immediately
cd filter-folder-creator
(cd ./ext/ && zip -r ../dist/$(basename "$(cd .. && pwd)").xpi ./*)Install XPI:
- Thunderbird
->Tools->Add-ons and Themes - Click gear icon
->"Install Add-on From File" - Select
filter-folder-creator.xpi
- Tools
->Account Settings - Select your IMAP account
- Click "Server Settings"
- Note the "Local directory" path
- Navigate to that folder
- Find
msgFilterRules.dat
- Click extension icon in toolbar
- Select IMAP account from dropdown
- Upload
msgFilterRules.dator copy/paste content - Click "Analyze Missing Folders"
- Review missing folders list
- Click "Create X Folders"
- Wait for completion message
- No accounts showing: Extension only works with IMAP accounts
- Parse errors: Ensure msgFilterRules.dat is from the selected account
- Creation fails: Check folder permissions and IMAP server connectivity
- View logs: Tools
->Developer Tools->Error Console
name="Move to Project"
enabled="yes"
type="17"
action="Move to folder"
actionValue="imap://user@server.com/Projects/Client-A"
condition="AND (subject,contains,project)"
Extension extracts: Projects/Client-A