How my brother describes the state of my inbox when I miss one of his emails
I never get around to cleaning out my inbox because there are so many recurring marketing emails I have accumulated over the last 15 years with this account. Smug Inbox Zero proponents would look down their nose at my unread count. The problem had grown so large that it felt unaddressable. Until now.
Daily Inbound Email Volume by Team Member
Source: Exchange Online message trace, 31-day average (March-April 2026).
According to an Exchange message trace, I receive over 90 emails a day, compared to around 20 for our engineers whose inboxes are mostly support tickets and SharePoint notifications.
At GCIT, we use Claude Code every day for development, building our AI coworker, creating MCP tooling, and automating client infrastructure. But last night I had the thought of setting it loose on a different problem: my inbox. The idea was simple. Register a short-lived Azure AD app with read-only access and the ability to create inbox rules, point Claude Code at the Graph API, and let it find every sender with an unsubscribe method so I could triage the deluge of communications I receive each day.
Using Claude Code as my AI assistant, the Microsoft Graph API, and Exchange Online, I triaged my entire mailbox in a single session. The result: 2,000 emails scanned across 90 days, 294 newsletter senders identified, 130 automatically unsubscribed, and 107 more filtered into a dedicated folder with inbox rules. The whole exercise took about 30 minutes, compared to the six to eight hours it would have taken to do manually.
Here is exactly how it worked, what the data looked like, and why this matters for anyone running a business on Microsoft 365.
The Problem Every Business Owner Ignores
The average office worker receives 121 emails per day, according to a 2024 report from Radicati Group. A significant portion of that volume comes from marketing emails, newsletters, and automated notifications, not from colleagues or clients.
In my case, I scanned 2,000 emails from a 90-day window and found that 400 of them (20%) came from newsletter or marketing senders that had unsubscribe mechanisms. That is roughly 4-5 marketing emails per day landing in the inbox alongside legitimate business communication.
The challenge is that unsubscribing one at a time is tedious. Each email requires scrolling to the footer, clicking a tiny link, waiting for a page to load, sometimes confirming on a second page, and occasionally logging into an account. Multiply that by 130 senders and you are looking at hours of manual clicking.
Why this matters for your business
Most people just live with inbox noise. They delete marketing emails one at a time, every day, forever. That is not a solution. It is a tax on your attention. When 20% of your inbox is noise, you are training yourself to skim everything, including the emails that actually matter.
How Claude Code Made This Possible
This is where it gets interesting. I did not write every line of code by hand. I described what I wanted to Claude Code (Anthropic’s AI coding assistant that runs in your terminal), and it built the tools for me in real time.
Here is how the actual conversation started:
Me: I want to create a mail.read app that can get emails from my mailbox and triage them for unnecessary newsletters and junk, and plan how to unsubscribe or create inbox rules to stop the noise.
Claude: Checked environment. Azure CLI, Node.js, Python available. Registered the Azure AD app, created client secret, granted admin consent, built the scan script. Ran it against 500 messages from the last 30 days.
Within minutes I had a working triage tool and a ranked report of 117 newsletter senders. From there, the conversation was just me making fast decisions while Claude Code handled the execution:
Me: For group one I’ll follow your recommendations. Let’s go group by group.
Claude: Group 1 done. 8 unsubscribed via one-click POST. OzBargain moved to Newsletters folder via inbox rule.
Me: Unsub all except Nate Silver from group 2, and use Playwright to unsub Temu.
Claude: Launched headless Chromium, navigated to the Temu unsubscribe URL, found and clicked the button. Screenshot confirmed: “You have successfully unsubscribed.” Meanwhile, processed 8 Group 2 senders via one-click POST and created inbox rules via Exchange.
Me: Can you ask me about them one by one? I can say 1 for unsub, 2 for rule, 3 for ignore.
Claude: Presented all 294 senders in batches. I tapped 1, 2, or 3 for each one. Claude executed every decision in real time.
That was the whole workflow. I described the problem, Claude Code built the tools, and we went through every sender together. My input for most of the session was just “1, 2, or 3” for each sender. Claude Code handled the Azure app registration, the Graph API calls, the MIME header decoding, the one-click unsubscribe requests, the Exchange inbox rules, and even a Playwright browser script for Temu. The whole thing took 30 minutes.
Elliot Munro at the GCIT office, where AI-assisted coding is part of daily operations
That is the key insight about AI tools like Claude Code for business owners. You do not need to be a developer to get developer-level outcomes. You need to be able to describe the problem clearly, and the AI handles the implementation. The conversation transcripts above are real, and they show how natural the interaction is. No coding syntax, no documentation reading, just plain English instructions and quick decisions.
What We Built: The Technical Approach
The tool connects to a Microsoft 365 mailbox using application permissions via the Graph API. It does three things:
- Scans the mailbox for emails with unsubscribe methods (List-Unsubscribe headers or body links)
- Reports on sender frequency, unsubscribe method types, and sample subjects
- Executes unsubscribes automatically using RFC 8058 one-click POST requests
One technical detail worth noting: many email providers encode their List-Unsubscribe URLs using MIME Q-encoding. Our script needed to decode these before extracting the URLs, a step that is easy to miss and causes silent failures. Claude Code identified this edge case after the first few unsubscribes failed quietly, and added the decoding logic automatically.
Claude Code executing automated unsubscribes. Green checkmarks for each sender processed successfully.
The Data: What 90 Days of Inbox Noise Looks Like
The initial 30-day scan found 117 unique newsletter senders across 500 messages. When I expanded to 90 days and 2,000 messages, that number jumped to 294 unique senders. The extended scan caught 177 additional senders that would have been completely missed in a shorter window, seasonal promotions, monthly newsletters, and low-frequency marketing.
Newsletter Senders by Unsubscribe Method
Based on 2,000 emails scanned across 90 days. Most senders support multiple methods. Hover each bar for details.
The breakdown tells an interesting story about email sender compliance. The vast majority of reputable senders now support RFC 8058 one-click unsubscribe, which means a tool can send a single POST request and you are done. No clicking, no confirmation pages, no logging in. Our script prioritised that method, falling back to HTTP GET, then flagging mailto and body-link senders for manual action.
The Triage: Not Everything Gets Unsubscribed
Rather than blindly unsubscribing from everything, I went through every sender and categorised them into three actions:
Unsubscribe (~130)
Marketing emails, vendor spam, retail promos, cold outreach. Anything that added no value.
Inbox rule (~107)
Emails with occasional value (loyalty programs, tech newsletters) filtered to a “Newsletters” folder, marked as read.
Keep (~15)
Transactional emails, security alerts, booking confirmations, and a handful of newsletters genuinely worth reading.
Across all 294 senders, the categories broke down roughly as you would expect. Retail and shopping was the biggest chunk (28%), dominated by the usual suspects like David Jones, Amazon, and Starbucks. Tech and software came next (18%), then travel and loyalty programs (14%), news and media (12%), food delivery apps like Temu and DoorDash (10%), cold outreach (8%), and local events and community newsletters (10%).
What Was Actually in My Inbox (294 senders across 90 days)
Based on 294 newsletter senders identified across 90 days. Hover for details.
The final triage summary. 130 unsubscribed, 107 filtered by rules, 10 kept in inbox.
The Temu Problem: When Senders Make It Hard
Temu was a notable outlier. Despite sending 6 emails in 30 days, it did not include a List-Unsubscribe header. The only unsubscribe option was a small link buried in the email body, wrapped in a Microsoft SafeLinks URL. No API call was going to handle this one.
I suggested Claude Code use Playwright to deal with it. Playwright is an open-source browser automation tool from Microsoft that lets you script a headless browser to navigate pages, click buttons, and take screenshots, the kind of thing QA teams use for testing web apps. Claude Code wrote a Playwright script that launched a headless Chromium browser, navigated to the Temu unsubscribe page, located the “Unsubscribe” button, clicked it, and captured a screenshot of the confirmation. The whole thing took about 30 seconds to write and run.
The Temu unsubscribe page, opened automatically by Playwright
Success. Playwright clicked the button and captured the confirmation
This highlights a gap in email sender compliance. RFC 8058 has been widely adopted by reputable senders, but some high-volume marketers still rely on body links that are harder for users (and tools) to find and act on. The workaround? AI writes you a browser automation script in 30 seconds.
Creating Inbox Rules at Scale with Exchange Online
For the 107 sender domains I wanted to filter rather than unsubscribe from, I used Exchange Online cmdlets to create inbox rules. First, a “Newsletters” subfolder under Inbox. Then rules using FromAddressContainsWords to match sender domains and automatically move those emails to the folder, marked as read.
One constraint: Exchange limits FromAddressContainsWords to 255 characters. Claude Code calculated the character counts and split the domains across 10 rules to stay within the limit. That kind of tedious detail is exactly where AI assistants shine, handling the fiddly constraints so you can focus on the decisions.
The inbox rules in Outlook Settings. Six rules covering 107 sender domains, all created automatically via Exchange Online.
The numbers after cleanup
- Inbox noise reduced by 60-70% based on 30-day sender frequency data
- 4-5 fewer marketing emails per day reaching the inbox
- 30 minutes total compared to an estimated 6-8 hours of manual unsubscribing
- 10 inbox rules covering 107 filtered domains
- Zero emails lost because filtered newsletters still arrive in a dedicated folder
The Newsletters folder 8 hours after setup. 21 emails automatically filtered out of the inbox, marked as read.
What Does This Mean for Your Business?
This was not an IT project. It was a productivity exercise. The kind of thing that every business owner says they will get around to but never does, because clicking unsubscribe links one at a time is not a good use of anyone’s afternoon.
The point is not that you should run Graph API scripts yourself. The point is that AI tools like Claude Code turn problems you would normally just live with into problems you can solve in a single sitting. I described what I wanted in plain English, Claude Code wrote the tools, and I made the decisions about what to keep, what to filter, and what to cut.
That pattern applies to dozens of everyday business problems. Data cleanup. Report generation. Process automation. System integration. The gap between “I wish someone would fix this” and “it is fixed” is shrinking fast, because AI can handle the implementation work that used to require hiring a developer or learning to code yourself.
Elliot’s take
“This is the kind of use case that makes AI real for people. Not writing essays, not generating images. Just solving an annoying problem you have been ignoring for years, in 30 minutes, with tools you already pay for. Every Gold Coast business owner I talk to has a version of this problem somewhere in their workflow. The ones who start using AI for these everyday fixes are the ones who end up finding the bigger opportunities.”
How to Clean Up Your Own Inbox (Three Options)
If this post has you looking at your inbox differently, here are three ways to act on it, from simplest to most thorough:
- Manual triage (1-2 hours): Search your inbox for “unsubscribe”, sort by sender, and start clicking. Tedious but requires no tools.
- Use a cleanup tool: Services like Microsoft Viva Insights and third-party tools like Unroll.me can identify newsletter subscriptions. Not as thorough as a full scan, but faster than manual work.
- Ask your IT provider to run the full triage: If you have managed IT support, your provider can run a scan like this across your mailbox or your entire team’s mailboxes.
If you are a GCIT client and want us to run this for your team, get in touch. It is a quick exercise with a big quality-of-life payoff.
What Would You Use Two Extra Hours For?
The real question is not about email. It is about all the small inefficiencies in your business that you have learned to live with because fixing them seemed harder than tolerating them. AI changes that equation. A 30-minute investment in cleanup that saves you 5 minutes a day gives you back over 20 hours a year. Scale that across your team and it adds up fast.
At GCIT, we use AI tools like Claude Code, Microsoft Power Automate, and custom integrations to solve exactly these kinds of problems for Gold Coast businesses. Sometimes it is inbox cleanup. Sometimes it is automating a process that takes five hours a day. The starting point is always the same: identify the problem, describe it clearly, and let AI handle the heavy lifting.
The GCIT team at Burleigh Heads. ISO 27001, 9001, and 14001 certified.
Want to find the AI opportunities hiding in your business?
GCIT’s AI Discovery Workshop is a complimentary 60-minute session where we analyse your operations and identify specific automation opportunities, from inbox cleanup to full process automation. No sales pitch, just a clear picture of where AI can save your team real time.
Elliot Munro is CISO and cofounder of GCIT, a Gold Coast managed IT services provider with ISO 27001, 9001, and 14001 certification. GCIT builds and deploys AI automation solutions for SMBs across South East Queensland.
