Screen and clear an email inbox in one pass with Claude Code
- Posted
- by Francois de Fitte (@francoisdefitte)
- Last checked
- Method:
- How we verify
Evidence: Described by posterThe person describes what happened in words, without screenshots or video.
Outcome
The poster runs all email in Claude Code: in one pass it screened 27 emails, archived and unsubscribed, and sent sub-agents after the three that needed real thought.
Agent
Prompt Recreated prompt
The source didn't share its exact prompt, so we wrote this from what it describes.
Here's a task I'd like your help with. Read it all the way through before you start. Goal: Go through my inbox, clear out what doesn't need me, and flag the few emails that do. Check with me first: Which emails should never be archived, for example from certain people? What I'll give you: - Access to my email - My rules for what's important Rules: - Sort emails into: archive, unsubscribe, and needs me. - Show me the unsubscribe list before unsubscribing. - For the few emails that need real thought, dig into each one and summarize it for me. - If something is missing or unclear, ask me instead of guessing. - Never send a reply without my OK. Output: A short summary of what was archived or unsubscribed, and the few emails that need me, with a short summary of each. You'll know it worked when: my inbox is down to only the emails that need my attention.
Try this in:
Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini opens empty, so we copy the prompt for you to paste. Every button also copies it.
The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Here's a task I'd like your help with. Read it all the way through before you start. Goal: Go through my inbox, clear what doesn't need me and flag the few emails that do. Quick check first: tell me if anything below is missing or unclear. Inputs (fill in or confirm): - Email access - Senders never to archive - What counts as important - How far back to process Rules: - Sort into archive, unsubscribe and needs me. - Show proposed actions in a list before acting. - Never delete; archive only. - For 'needs me', give a one-line summary. - Group unsubscribe candidates by sender with counts. - Process in batches of 100 and report. - Show me the flagged emails list. - Draft replies for flagged emails but never send them. - Unsubscribe only from senders I approve. Checkpoint: Wait for approval before archiving or unsubscribing. If you get stuck: If unsure, put it in 'needs me'. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: Check counts per bucket. Output: Bucket list and summaries. Done when: my inbox is clear and nothing important was archived.
Source
https://x.com/francoisdefitte/status/2086831437047566793
Related cases
- Sort a week of unread email into reply, money and clutter with GeminiEvidence: Article or interviewBeginner-friendly
Android Police's Akshay Bhalla, facing thousands of unread emails, set up a Gemini scheduled action that summarizes the last seven days of unread Gmail into three groups: threads needing his reply, financial emails like invoices and receipts, and low-priority newsletters and alerts. He says the near-daily report puts the few emails needing a reply front and center; with a second prompt to purge clutter, he says he cleaned 200 unread threads in an hour.
Poster says:200 unread threads cleaned in one hour
Gemini in Gmail · Personal · Source date:
- Clear 23,000 emails and unsubscribe from newsletters in Gmail with ChatGPT's Gmail connectionEvidence: Described by poster
A poster connected his Gmail and calendar to ChatGPT, then asked it to list all his subscriptions from his emails, unsubscribe from all but the ones he wanted, create deletion rules for the rest, and delete Promotions, Updates, Social and Trash. He says he deleted over 23,000 emails and made his inbox usable again, and ChatGPT told him when it was finished.
ChatGPT · Personal · Source date:
- Turn an inbox into a daily to-do list with Claude Cowork (abandoned)Improved promptEvidence: Described by posterFailure
Claude Cowork summarized the poster's email into a to-do list, but the list grew long and unmanageable, so the poster stopped reading it and turned it off as a waste of tokens.
Claude Cowork · Personal · Source date: