π― AutoSort+ for Thunderbird
AI-powered email organization that adapts to your workflow. Choose from cloud providers (Gemini, OpenAI, Anthropic, Groq, Mistral) or run a local Ollama model and let AutoSort+ automatically move emails to the right folders.
Available as a manual install (.xpi). See the Documentation below for installation and usage instructions.
π What is AutoSort+?
AutoSort+ transforms your email workflow by automatically organizing messages into your custom folder structure using cutting-edge AI. Unlike rigid rule-based systems, AutoSort+ understands context, learns your preferences, and adapts to your unique organizational needs.
β¨ Why Choose AutoSort+?
| Feature | Traditional Filters | AutoSort+ |
|---|---|---|
| Setup Time | Hours of rule configuration | Minutes with AI |
| Flexibility | Static rules, breaks easily | Adaptive AI, learns patterns |
| Context Understanding | Basic keyword matching | Full content comprehension |
| Multi-Provider | N/A | 5 cloud providers + local Ollama support |
| Smart Limits | N/A | Built-in rate limit management |
| History Tracking | Manual logging | Automatic 100-move history |
π Latest Release: v1.2.3.3
π― Key Features
π€ Multi-Provider AI Support
Choose the best AI provider for your needs:
| Provider | Model | Free Tier | Speed | Best For |
|---|---|---|---|---|
| Gemini | gemini-2.5-flash | 20/day/key | β‘β‘β‘ | General use, fast processing |
| OpenAI | gpt-4o-mini | - | β‘β‘ | Premium quality |
| Claude | claude-3-haiku | 1000/day | β‘β‘β‘ | Long emails, nuanced content |
| Groq | llama-3.3-70b | Generous | β‘β‘β‘β‘ | Ultra-fast, free |
| Mistral | mistral-small | Free tier | β‘β‘β‘ | European privacy focus |
| Ollama | local LLM (llama3.2, phi, tinyllama) | Local (no external usage) | β‘β‘ - β‘β‘β‘ | Run models locally for privacy and offline use; supports model download and CPU-only mode |
π Smart Rate Limit Management (Gemini)
- Automatic Enforcement: 5 requests/minute, 20/day
- Real-Time Tracking: See usage in settings dashboard
- Smart Warnings: Alerts at 15/20 limit
- Multi-Key Support: Switch keys when limit reached
- Paid Plan Bypass: Disable limits with paid plan checkbox
π Flexible Folder Management
- IMAP Discovery: Auto-load your existing folder structure
- Bulk Import: Paste lists of labels
- Custom Categories: Create unlimited folder categories
- Auto-Create: Missing folders created automatically
- Smart Navigation: Recursive folder traversal
π Move History & Tracking
- Last 100 Moves: Full audit trail
- Timestamps: Precise move timing
- Status Tracking: Success/failure indicators
- Subject Lines: Quick identification
- Destination Folders: See where emails went
- Clear History: Fresh start anytime
π Quick Start Guide
1οΈβ£ Installation
Option 1: Direct Download
# Download the latest XPI from releases
wget https://github.com/Nigel1992/AutoSort-Plus/releases/latest/download/autosortplus.xpi
Option 2: Build from Source
git clone https://github.com/Nigel1992/AutoSort-Plus.git
cd AutoSort-Plus
# Install in Thunderbird: Tools β Add-ons β Install Add-on From File
2οΈβ£ Get Your API Key
Choose your preferred AI provider:
- Gemini (Free): Get API Key - 20 requests/day per key
- OpenAI (Paid): Get API Key
- Anthropic (Free/Paid): Get API Key - 1000/day free
- Groq (Free): Get API Key - Generous limits
- Mistral (Free/Paid): Get API Key
- Ollama (Local): No API key required β Install Ollama and pull a model (e.g.,
ollama pull llama3.2). See the Ollama setup guide in the docs for details.
3οΈβ£ Configure AutoSort+
- Open Thunderbird β Tools β Add-ons
- Find AutoSort+ β Click Options
- Select AI Provider and paste your API key
- Click βTest API Connectionβ β
- Load folders from IMAP or add custom labels
- Save settings and youβre ready!
4οΈβ£ Start Organizing
You have two options:
Option 1: AI-Powered Sorting
- Select emails β Right-click β AutoSort+ β Analyze with AI
- The AI will analyze and move emails to the best folder/category.
Option 2: Manual Labeling
- Select emails β Right-click β AutoSort+ β AutoSort Label β [Pick any label]
- The selected label/category will be applied instantly to all selected emails.
π Usage Guides
Managing Gemini Rate Limits
If using Geminiβs free tier:
- Monitor Usage: Check settings for real-time count (X/20)
- Watch Warnings: Yellow alert at 15, red at 20
- Create More Keys: Generate multiple API keys in different projects
- Switch Keys: Paste new key when limit reached, click Reset Counter
- Upgrade: Enable βGemini paid planβ if you have one
Creating Multiple Gemini Keys
1. Go to Google AI Studio: https://aistudio.google.com/
2. Create a new project
3. Generate API key for that project
4. Each project = new 20/day limit
5. Switch keys in AutoSort+ settings as needed
Setting Up Custom Folders
Method 1: IMAP Discovery
- Click βLoad Folders from IMAPβ
- Select your account
- All folders appear automatically
Method 2: Bulk Import
Work
Personal
Finance
Projects
Family
- Paste list (one per line) β Click Import
Method 3: Manual Entry
- Type label name β Click βAdd Labelβ β See green checkmark
π Privacy & Security
| Aspect | Details |
|---|---|
| Email Storage | β Never stored, analyzed in memory only |
| API Keys | π OS-level encryption via browser storage |
| Data Transmission | β Direct to your chosen AI provider |
| Telemetry | β None - zero tracking |
| Open Source | β Full transparency, audit anytime |
| Third Parties | β No intermediary servers |
Your privacy is paramount. All analysis happens directly between Thunderbird and your chosen AI provider. We donβt have servers because we donβt want your data!
π οΈ Advanced Configuration
Provider-Specific Settings
Gemini Users:
- Enable βPaid Planβ checkbox to bypass rate limits
- Use Reset Counter when switching API keys
- Monitor daily reset time in usage panel
Ollama (Local) Users:
- Install Ollama: https://ollama.ai/download
- Pull a model:
ollama pull llama3.2(ortinyllama,phi,gemma) - Set the Ollama URL and model in AutoSort+ settings (no API key required)
- Use CPU-only mode in settings to avoid GPU usage if necessary
- If Ollama returns 403 or connection errors, check
OLLAMA_403_DEBUG.mdin the repo
All Providers:
- Test connection before first use
- Save settings after changes
- Check move history for troubleshooting
Folder Organization Tips
- Keep categories broad: βWorkβ, βPersonalβ, βFinanceβ
- Avoid special characters: Use alphanumeric names
- Case-sensitive matching: Labels must match exactly
- Use examples: More context = better AI understanding
β οΈ Troubleshooting
API Key Issues
Problem: βAPI Key Not Configuredβ error
Solution:
- Verify key is from correct provider
- No spaces before/after key
- Click βTest API Connectionβ
- Check providerβs usage dashboard for validity
Rate Limit Errors
Problem: βRate limit exceededβ for Gemini
Solution:
- Check usage counter in settings (X/20)
- Wait for daily reset (time shown in settings)
- Create new API key in different project
- Switch key and click βReset Counterβ
- Or enable βPaid Planβ if applicable
Settings Page Wonβt Load
Solution:
1. Thunderbird β Settings β Privacy β Cookies and Site Data
2. Click "Clear Data"
3. Tools β Add-ons β AutoSort+ β Reload
Emails Not Moving
Check:
- β API key is valid (test it)
- β Labels are saved (green checkmark)
- β Folders exist (or auto-create enabled)
- β Internet connection active
- β No rate limit reached
π System Architecture
βββββββββββββββββββββββββββββββββββββββββββ
β Thunderbird Email Client β
ββββββββββββββββ¬βββββββββββββββββββββββββββ
β
ββββββββββββββββΌβββββββββββββββββββββββββββ
β AutoSort+ Extension β
β β
β ββββββββββββ ββββββββββββ β
β β UI Layer β β Backgroundβ β
β β(options) ββββ€ Script β β
β ββββββββββββ βββββββ¬ββββββ β
β β β
β βββββββββΌβββββββββ β
β β Rate Limiter β β
β β (Gemini only) β β
β βββββββββ¬βββββββββ β
ββββββββββββββββββββββββΌββββββββββββββββββ
β
βββββββββββββββ΄ββββββββββββββ
β β
ββββββΌβββββ ββββββββββ βββββββΌββββββ
β Gemini β β Groq β β Claude β
β API β β API β β API β
βββββββββββ ββββββββββ βββββββββββββ
π€ Support & Community
Before reporting an issue:
- Check troubleshooting section above
- Search existing issues
- Include: Thunderbird version, AutoSort+ version, AI provider, error message
π Contributing
We β€οΈ contributions! Hereβs how to help:
Ways to Contribute
- π Report bugs with detailed reproduction steps
- π‘ Suggest features that would improve your workflow
- π Improve docs with clearer explanations
- π§ͺ Test releases with different providers
- π» Submit code via pull requests
Development Setup
# Clone repository
git clone https://github.com/Nigel1992/AutoSort-Plus.git
cd AutoSort-Plus
# Make changes
# Test in Thunderbird: Tools β Add-ons β Debug Add-ons β Load Temporary Add-on
# Submit PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature
π License
MIT License - Free to use, modify, and distribute.
See LICENSE for full text.
π¨ Credits
Icon Design: Fantasyou - Flaticon
AI Providers:
Built with:
- Thunderbird WebExtension APIs
- JavaScript ES6+
- Love β€οΈ
β Star History
Made with β€οΈ to help you organize email faster
β¬ Back to Top β’ GitHub β’ Latest Release