Freedom251 › Email Cleanup Software
mailtrim

What mailtrim is
mailtrim is a free, Linux command-line tool for finding and removing inbox clutter. It ranks senders by the storage their messages use, not just by message count, so you can identify which senders take up the most space. Its purge command can delete messages from selected senders or target a sender domain; a dry-run preview lets you review the proposed deletion before confirming it. Deleted mail goes to Trash and can be restored for up to 30 days. The tool works with Gmail and IMAP services, including Outlook, Fastmail, iCloud, and self-hosted servers. Gmail connects through OAuth, while IMAP setup uses server credentials and keeps the password out of local storage. Optional AI tools provide inbox triage, natural-language bulk operations, and weekly digests, and are off by default. When Anthropic handles AI requests, mailtrim sends subjects, sender details, and snippets, but not full message bodies or attachments. Its privacy policy says email-related data is stored locally and that the tool has no analytics, crash reporting, or usage tracking. The repository describes mailtrim as MIT-licensed. The free plan costs nothing, with no subscription or API key required for core commands.
Who it suits
mailtrim suits Linux users who want a command-line way to find high-storage senders and clean up Gmail or IMAP inboxes in bulk. It may also suit users who want optional AI triage or digests, provided they are comfortable with the stated data sent to Anthropic when cloud AI is used.
What it does well
- Ranks senders by storage impact rather than message count alone.
- Previews purge actions with a dry run before confirmation.
- Deleted messages can be restored from Trash for up to 30 days.
- Supports Gmail and IMAP providers, including self-hosted servers.
- Core commands need no API key or subscription.
- MIT-licensed for use, modification, and distribution.
What to know first
- Available on Linux.
- Cloud AI sends subjects, sender details, and snippets to Anthropic.
- Its threat model covers a single-user local CLI, not multi-user or server deployment.
Limits
The Free plan costs nothing and includes core commands without a subscription or API key. Optional AI features are off by default; when used with Anthropic, email subjects, sender details, and snippets are sent, but full bodies and attachments are not.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Free | No subscription · no API key required for core commands | Free |
As github.com lists them, read 8 Oct 2026. The maker's own page has the final word.
Getting started
- Open the mailtrim GitHub repository.
- Use a Linux environment with the command-line tool.
- Connect Gmail using OAuth, or configure an IMAP service with its server credentials.
- Review a purge with the dry-run preview before confirming a deletion.
Verdict
Choose mailtrim if you use Linux and want sender storage rankings, bulk cleanup, and a reversible deletion path for Gmail or IMAP. Look elsewhere if you need a multi-user or server deployment, or do not want the listed email details sent to Anthropic when using cloud AI.
Questions
How much does mailtrim cost?
The Free plan costs nothing, with no subscription.
Which email services does it support?
It works with Gmail and IMAP services, including Outlook, Fastmail, iCloud, and self-hosted servers.
Can deleted emails be restored?
Deleted messages go to Trash and can be restored for up to 30 days.
Does mailtrim use AI?
Optional AI features include inbox triage, natural-language bulk operations, and weekly digests. They are off by default.
What data is sent when Anthropic is used?
Email subjects, sender names or addresses, and snippets are sent. Full email bodies and attachments are not.
Is mailtrim open source?
The repository describes it as MIT-licensed, allowing use, modification, and distribution.
Facts from mailtrim's own pages
- AI data
- When cloud AI is used, email subjects, sender details, and snippets are sent to Anthropic; full message bodies and attachments are not sent. · github.com, 8 Oct 2026
- AI features
- Optional AI features include inbox triage, natural-language bulk operations, and weekly digests; AI is off by default. · github.com, 8 Oct 2026
- Authentication
- Gmail setup uses OAuth, while IMAP setup accepts server credentials and keeps the password out of local storage. · github.com, 8 Oct 2026
- Bulk cleanup
- The purge command can bulk-delete emails from selected senders or target a sender domain. · github.com, 8 Oct 2026
- Cleanup
- It ranks senders by storage impact and supports bulk cleanup, including deleting 300+ emails from one sender in a single command. · github.com, 8 Oct 2026
- Cloud AI data
- When AI features use Anthropic, the tool sends email subjects, sender names or addresses, and snippets, but not full email bodies or attachments. · github.com, 8 Oct 2026
- Email providers
- It works with Gmail and IMAP services, including Outlook, Fastmail, iCloud, and self-hosted IMAP servers. · github.com, 8 Oct 2026
- License
- The repository describes mailtrim as MIT-licensed and free to use, modify, and distribute. · github.com, 8 Oct 2026
- Local data
- The privacy policy says email metadata, undo logs, and related data are stored locally, and full email bodies are never stored locally or sent anywhere. · github.com, 8 Oct 2026
- Local storage
- The privacy policy says OAuth tokens, metadata cache, undo logs, rules, and unsubscribe history are stored locally under ~/.mailtrim/. · github.com, 8 Oct 2026
- Purpose
- mailtrim is a command-line tool for finding and cleaning up inbox clutter. · github.com, 8 Oct 2026
- Safety preview
- The purge command supports a dry-run preview of what would be deleted before confirmation. · github.com, 8 Oct 2026
- Security limitation
- The threat model describes mailtrim as a single-user local CLI and says multi-user or server deployment threats are out of scope. · github.com, 8 Oct 2026
- Sender ranking
- It ranks senders by storage impact, rather than only by message count. · github.com, 8 Oct 2026
- Support
- The README directs users to GitHub Issues for bug reports and feature requests. · github.com, 8 Oct 2026
- Telemetry
- The privacy policy says mailtrim has no analytics, crash reporting, or usage tracking. · github.com, 8 Oct 2026
- Undo
- Deleted messages go to Trash and can be restored for up to 30 days. · github.com, 8 Oct 2026
Where mailtrim stands on Freedom251
- Email Cleanup Software#20 of 31