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•6h 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•21m ago
Totally 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•7h ago
Curious if others have noticed the same pattern — a few senders making up most of the inbox.
yesensm•7h ago
Very useful!
guessmyname•6h 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•6h 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•6h 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•6h 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•6h 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•6h 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•6h 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•6h 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•6h 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.
chevuru•22m ago
This is a great call. you're right that a lot of the "hidden bloat" sits in archived mail, not the inbox.

Right now mailtrim only looks at inbox by default, but adding support for something like:

  in:anywhere -in:trash -in:spam
is very doable.

Would you expect this as: 1) a flag (e.g. --all-mail) 2) or the default behavior?

Happy to prioritize this if it's useful. Feels like it would surface way more interesting results.

Talk like caveman

https://github.com/JuliusBrussee/caveman
49•tosh•1h ago•31 comments

Lisette a little language inspired by Rust that compiles to Go

https://lisette.run/
78•jspdown•3h ago•35 comments

Show HN: A game where you build a GPU

https://jaso1024.com/mvidia/
772•Jaso1024•18h ago•160 comments

German implementation of eIDAS will require an Apple/Google account to function

https://bmi.usercontent.opencode.de/eudi-wallet/wallet-development-documentation-public/latest/ar...
293•DyslexicAtheist•11h ago•253 comments

Introduction to Computer Music (2009) [pdf]

https://composerprogrammer.com/introductiontocomputermusic.pdf
162•luu•8h ago•53 comments

OpenScreen is an open-source alternative to Screen Studio

https://github.com/siddharthvaddem/openscreen
306•jskopek•4d ago•54 comments

Scientists Figured Out How Eels Reproduce (2022)

https://www.intelligentliving.co/scientists-finally-figured-out-how-eels-reproduce/
31•thunderbong•3d ago•0 comments

LLM Wiki – example of an "idea file"

https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
203•tamnd•17h ago•64 comments

Dynamics of (Not) Being Perceived: Grief and Relief After Leaving Social Media

https://networkcultures.org/thedigitalgutmensch/2026/04/02/dynamics-of-not-being-perceived-the-gr...
14•glovink•3h ago•1 comments

Zml-smi: universal monitoring tool for GPUs, TPUs and NPUs

https://zml.ai/posts/zml-smi/
49•steeve•4d ago•7 comments

Aegis – open-source FPGA silicon

https://github.com/MidstallSoftware/aegis
33•rosscomputerguy•4h ago•4 comments

Rubysyn: Clarifying Ruby's Syntax and Semantics

https://github.com/squadette/rubysyn/blob/master/README.md
51•petalmind•4d ago•5 comments

How many products does Microsoft have named 'Copilot'?

https://teybannerman.com/strategy/2026/03/31/how-many-microsoft-copilot-are-there.html
651•gpi•15h ago•313 comments

Show HN: I built a small app for FSI German Course

https://detawk.com/
37•syedmsawaid•2d ago•11 comments

AWS engineer reports PostgreSQL perf halved by Linux 7.0, fix may not be easy

https://www.phoronix.com/news/Linux-7.0-AWS-PostgreSQL-Drop
298•crcastle•10h ago•91 comments

Show HN: OsintRadar – Curated directory for osint tools

https://osintradar.com/
12•lexalizer•4h ago•1 comments

Show HN: Contrapunk – Real-time counterpoint harmony from guitar input, in Rust

https://contrapunk.com/
72•waveywaves•10h ago•30 comments

Unverified: What Practitioners Post About OCR, Agents, and Tables

https://idp-software.com/news/idp-accuracy-reckoning-2026/
9•chelm•4h ago•1 comments

Show HN: I made open source, zero power PCB hackathon badges

https://github.com/KaiPereira/Overglade-Badges
108•kaipereira•20h ago•10 comments

Components of a Coding Agent

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent
240•MindGods•21h ago•76 comments

Show HN: sllm – Split a GPU node with other developers, unlimited tokens

https://sllm.cloud
159•jrandolf•19h ago•79 comments

The Indie Internet Index – submit your favorite sites

https://iii.social
149•freshman_dev•20h ago•28 comments

Ask HN: Is there any interest in a native Qt/C++ Discord client?

5•txtsd•3d ago•8 comments

Modern Generic SVGA driver for Windows 3.1

https://github.com/PluMGMK/vbesvga.drv
43•userbinator•5h ago•9 comments

Ruckus: Racket for iOS

https://ruckus.defn.io/
131•nsm•2d ago•12 comments

Demonstrating Real Time AV2 Decoding on Consumer Laptops

http://aomedia.org/blog%20posts/Demonstrating-Real-Time-AV2-Decoding-on-Consumer-Laptops/
29•breve•9h ago•3 comments

Show HN: M. C. Escher spiral in WebGL inspired by 3Blue1Brown

https://static.laszlokorte.de/escher/
88•laszlokorte•15h ago•13 comments

Electrical transformer manufacturing is throttling the electrified future

https://www.bloomberg.com/features/2025-bottlenecks-transformers/
89•toomuchtodo•3d ago•80 comments

Apple approves driver that lets Nvidia eGPUs work with Arm Macs

https://www.theverge.com/tech/907003/apple-approves-driver-that-lets-nvidia-egpus-work-with-arm-macs
436•naves•18h ago•194 comments

Ask HN: Vibe Coding over Easter?

4•datawars•1h ago•0 comments