frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: mailtrim – find what's actually filling your Gmail inbox

29•chevuru•7h ago
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

Comments

chevuru•7h ago
Happy to help with setup if anyone tries it — GCP step is the only slightly annoying part right now.
salusinarduis•5h ago
I 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•7h ago
Curious if others have noticed the same pattern — a few senders making up most of the inbox.
yesensm•6h ago
Very useful!
guessmyname•5h ago
Why 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.

drfloyd51•5h ago
28 important emails in 20 years? Would the information in those emails had gotten to you via a different vector if you did not have email? This sounds like a case for not having email.
collabs•5h ago
I am not saying I'm right, I'm just explaining how it got this bad.

See I used to have 2 MB on my hot mail and 4 MB on my Yahoo! Mail. I used to do exactly what you said. Then, I got invitation to Google mail. 1GB and counting!

I got lazy. I no longer had to delete mail anymore. So, it started accumulating. There. That's the whole story.

kaonwarb•5h ago
OP is aiming to help a quite common problem. Curious: how many others have you met with as spare of an email inbox as yours?
LiamPowell•5h ago
Did you really use a LLM to generate the sample output in your readme instead of just running the application? I noticed the borders were all misaligned and wondered if you had hardcoded the number of spaces, but I looked at the code and you haven't.

If you did generate the output with a LLM instead of just running it... why?

Also:

> It uses Claude AI for smart classification, but runs entirely locally: your emails never leave your machine.

How can both of these things be true? How can Claude be used as a classifier without sending your emails to Claude? From looking at the code it appears that you do in fact just send off emails to Claude, or at least the first 300-400 characters, so that line is just a complete lie.

CobrastanJorji•5h ago
I think the idea is that SOME of the classification (the "stats" command) works without AI, but it also supports some fancy and definitely-not-local Anthropic processing options.
chris_seaman•5h ago
Very cool! Congratulations on putting this together.

Was also tinkering with Gmail bloat but, admittedly, with a less ambitious approach. Definitely going to give it a try.

trustfixsec•5h ago
Nice approach. Confidence scoring on what's the safe one to delete is smart, and that's the hardest part of any cleanup tool. How are you handling false positives? I've been thinking about similar confidence scoring in a different domain (security) and the calibration is really tricky when the cost of getting it wrong is high.
DigitallyBorn•5h ago
I would love it if it could run against archived messages (`in:anywhere -in:trash -in:spam`) ... I've been archiving all email for a very long time and being able to run stats and purge it would do wonders.

IResearch: A C++ search library with benchmark

https://blog.serenedb.com/search-benchmark-game-overview
1•janemanos•18s ago•0 comments

Show HN: Vektor – local-first associative memory for AI agents

https://vektormemory.com/docs/
1•vektormemory•1m ago•0 comments

Bitchat over Meshcore 1.14.1

https://twitter.com/eddieoz/status/2040508233748451668
1•eddieoz•2m ago•0 comments

The threat is comfortable drift toward not understanding what you're doing

https://ergosphere.blog/posts/the-machines-are-fine/
1•zaikunzhang•3m ago•0 comments

Planet Labs to indefinitely withhold Iran war images

https://www.reuters.com/business/media-telecom/satellite-firm-planet-labs-indefinitely-withhold-i...
2•jonbaer•11m ago•0 comments

Bigme Hibreak: dual screen color eInk smartphone

https://store.bigme.vip/pages/hibreak-dual-smartphone
1•thunderbong•14m ago•0 comments

Gen-Searcher: Open-source agent that searches the web before generating images

https://github.com/tulerfeng/Gen-Searcher
1•steveharing1•14m ago•0 comments

I Accidentally Reinvented Kernel (Programming Language)

https://fayash.me/posts/how-i-accidentally-reinvented-kernel
1•fayash•21m ago•0 comments

Study: The AI Body Gap

https://www.uclahealth.org/news/release/ai-can-describe-human-experiences-lacks-experience-actual-2
1•giuliomagnifico•22m ago•0 comments

Update: Using third-party harnesses with your Claude subscription

2•seifbenayed1992•28m ago•0 comments

Ask HN: Vibe Coding over Easter?

2•datawars•31m ago•0 comments

Is the UK falling out of love with social media?

https://www.theguardian.com/news/ng-interactive/2026/apr/05/uk-social-media-apps-share
1•mindracer•38m ago•0 comments

Dockhand: Docker Management Suite

https://dockhand.pro/
1•indigodaddy•43m ago•0 comments

Microsoft QDK from .NET to Rust: 100x faster, 100x smaller

https://quantum.microsoft.com/en-us/insights/blogs/qir/introducing-the-microsoft-quantum-developm...
2•AbuAssar•45m ago•0 comments

Record demo videos in the browser: multi-screen, camera, annotations, subtitles

https://github.com/KaliedaRik/sc-screen-recorder/blob/main/README.md
1•rikroots•46m ago•1 comments

Skills to construct and read docs following the progressive exposure principle

2•Felix-Zhenghao•49m ago•1 comments

High meat consumption linked to lower dementia risk in genetic risk group

https://news.ki.se/high-meat-consumption-linked-to-lower-dementia-risk-in-genetic-risk-group
3•tannhaeuser•53m ago•0 comments

Self-Employed

1•mjuhler•56m ago•0 comments

Web3 project technical analysis Skill for AI agents

https://clawhub.ai/one0000u/web3tech
2•0xmrone111•1h ago•0 comments

Apple Expands Age Verification to Singapore and South Korea

https://reclaimthenet.org/apple-expands-age-verification-to-singapore-south-korea
1•Shank•1h ago•0 comments

Talk like caveman

https://github.com/JuliusBrussee/caveman
2•tosh•1h ago•0 comments

Show HN: I built an EAT skill that lets an agent place food delivery orders

https://github.com/mvksims/eatcli
1•maxshadurskiy•1h ago•0 comments

Goldman Sachs: biggest oil crisis in history is about to hit

https://bsky.app/profile/chriso-wiki.bsky.social/post/3miqdf2v6i52w
1•doener•1h ago•0 comments

Causes and Consequences of Income Inequality: A Global Perspective (2015)

https://www.imf.org/en/publications/staff-discussion-notes/issues/2016/12/31/causes-and-consequen...
1•doener•1h ago•0 comments

Kylor

1•kylor•1h ago•0 comments

The Future of Adult Entertainment: Personalized, AI Content

https://unbound.video/landing4
3•jadebound•1h ago•0 comments

Build web apps for smart glasses

https://hub.evenrealities.com/docs/getting-started/overview
1•mozz100•1h ago•1 comments

show HN:I built a GDPR consent manager for agencies (one dashboard, 30 domains)

https://www.consentify.app/en
1•aaresvictor•1h ago•1 comments

Google's ZKP-hidden quantum attack

https://adlrocha.substack.com/p/adlrocha-googles-zkp-hidden-quantum
1•adlrocha•1h ago•0 comments

Scan for secrets in files you plan to share

https://github.com/simonw/scan-for-secrets
2•pretext•1h ago•0 comments