5 ms·
Show HN: mailtrim – find what's actually filling your Gmail inbox
I always assumed Gmail bloat came from large attachments.
Turns out 3 senders were responsible for 30% of my inbox —
thousands of tiny emails I'd never thought to clean up.
I built mailtrim to surface this pattern:
- ranks senders by actual storage impact (not just count)
- confidence scoring on what's safe to bulk-delete
- 30-day undo on everything — nothing is permanent by default
- runs entirely locally, no email data leaves your machine
Free, open source (MIT). No subscription, no backend.
One friction point upfront: Gmail API setup is one-time, ~15 min.
After that it's just `mailtrim stats` and `mailtrim purge`.
Keen to hear feedback on the confidence/safety model especially —
that's the part I'm least sure I've got right.
https://github.com/sadhgurutech/mailtrim
- chevuru 6mo agoHappy to help with setup if anyone tries it — GCP step is the only slightly annoying part right now.
- salusinarduis 6mo agoI would love to use this on my iCloud mailbox. It seems odd to use the Gmail API instead of IMAP. Hopefully that becomes supported in the future because the project seems great.
- chevuru 6mo agoTotally fair. This is probably the biggest limitation right now. I started with the Gmail API because: - better performance vs IMAP for large mailboxes - easier access to size metadata per message That said, IMAP support is something I definitely want to add. Especially for iCloud/Outlook users. If I did add IMAP, would you be okay with: - slower scans - slightly less accurate size estimates Or is parity with Gmail important?
- chevuru 6mo agoCurious if others have noticed the same pattern — a few senders making up most of the inbox.
- yesensm 6mo agoVery useful!
- guessmyname 6mo agoWhy thousands? You never read or delete all your emails within a day? My inbox, which I have for almost two decades only has 28 emails in it. Not 28 unread emails, but 28 total emails. I delete everything within a day of receiving, except for every important things, hence why 28 of them still remain. Keeping thousands of emails in your inbox, while virtually free, is an attack vector for hackers, and also a gold mine for advertisement brokers who pay email providers money to show you ads based on your daily habits.