Skip to the content.

🎯 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.

Version Thunderbird License

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

πŸš€ Release v1.2.3.3 β€” January 28, 2026

Summary: Fixed manual label application from the context menu (Right-click β†’ AutoSort+ β†’ AutoSort Label β†’ pick a label). The background script now handles selection and labeling reliably across Thunderbird views.

πŸ› οΈ Notable Fix

  • βœ… Manual Labeling Fix: Replaced content-script dependency with mailTabs API handling in background script to avoid β€œCould not establish connection. Receiving end does not exist.” errors.

🎯 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)

πŸ“ Flexible Folder Management

πŸ“œ Move History & Tracking


πŸš€ 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:

3️⃣ Configure AutoSort+

  1. Open Thunderbird β†’ Tools β†’ Add-ons
  2. Find AutoSort+ β†’ Click Options
  3. Select AI Provider and paste your API key
  4. Click β€œTest API Connection” βœ…
  5. Load folders from IMAP or add custom labels
  6. Save settings and you’re ready!

4️⃣ Start Organizing

You have two options:

Option 1: AI-Powered Sorting

Option 2: Manual Labeling

If you add or change labels in the settings menu, you must restart Thunderbird for the new labels to appear in the right-click menu.

πŸ“– Usage Guides

Managing Gemini Rate Limits

If using Gemini’s free tier:

  1. Monitor Usage: Check settings for real-time count (X/20)
  2. Watch Warnings: Yellow alert at 15, red at 20
  3. Create More Keys: Generate multiple API keys in different projects
  4. Switch Keys: Paste new key when limit reached, click Reset Counter
  5. 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

Method 2: Bulk Import

Work
Personal  
Finance
Projects
Family

Method 3: Manual Entry


πŸ”’ 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:

Ollama (Local) Users:

All Providers:

Folder Organization Tips


⚠️ Troubleshooting

API Key Issues

Problem: β€œAPI Key Not Configured” error

Solution:

  1. Verify key is from correct provider
  2. No spaces before/after key
  3. Click β€œTest API Connection”
  4. Check provider’s usage dashboard for validity

Rate Limit Errors

Problem: β€œRate limit exceeded” for Gemini

Solution:

  1. Check usage counter in settings (X/20)
  2. Wait for daily reset (time shown in settings)
  3. Create new API key in different project
  4. Switch key and click β€œReset Counter”
  5. 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:


πŸ“Š System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         Thunderbird Email Client        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚        AutoSort+ Extension              β”‚
β”‚                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”‚
β”‚  β”‚ UI Layer β”‚  β”‚ Backgroundβ”‚           β”‚
β”‚  β”‚(options) │◄──  Script   β”‚           β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜           β”‚
β”‚                      β”‚                  β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚              β”‚  Rate Limiter  β”‚        β”‚
β”‚              β”‚  (Gemini only) β”‚        β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                       β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚                           β”‚
    β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”
    β”‚ Gemini  β”‚  β”‚  Groq  β”‚  β”‚  Claude   β”‚
    β”‚   API   β”‚  β”‚  API   β”‚  β”‚   API     β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🀝 Support & Community

| πŸ’‘ Have Questions? | πŸ› Found a Bug? | ✨ Feature Ideas? | |-------------------|-----------------|-------------------| | [Discussions](https://github.com/Nigel1992/AutoSort-Plus/discussions) | [Issues](https://github.com/Nigel1992/AutoSort-Plus/issues) | [Feature Requests](https://github.com/Nigel1992/AutoSort-Plus/issues) |

Before reporting an issue:

  1. Check troubleshooting section above
  2. Search existing issues
  3. Include: Thunderbird version, AutoSort+ version, AI provider, error message

πŸ™ Contributing

We ❀️ contributions! Here’s how to help:

Ways to Contribute

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:


⭐ Star History

Star History Chart


Made with ❀️ to help you organize email faster

⬆ Back to Top β€’ GitHub β€’ Latest Release


Thunderbird License Version