Wiring QQ Mail into Claude Code — AI Manages Your Email, Clears the Junk, Even Fully Automates Invoice Expense Reports
Everyone's talking about flashy AI applications, but the thing that eats the most time in an office is usually the most unglamorous one — email. Reading messages one at a time, hunting down invoices one at a time, digging through your mailbox at month-end until your eyes hurt.
In this episode I wire QQ Mail straight into CC. The whole process is three steps. Turn on IMAP, get an authorization code (not a password — a key you can void at any time), and tell it in plain language to manage your email. Once connected: the inbox sorts itself into four categories, junk mail gets wiped with one sentence, meeting emails get written into todos, and invoice attachments get pulled out automatically and handed to the expense report skill. At the end I address the "is it safe to let AI read my mailbox" question head-on — where the boundary is, and how to take the key back whenever you want.
Everyone’s talking about flashy AI applications — image generation, digital avatars. But look back at your own office and the thing that eats the most time is usually the most unglamorous one: email. Messages have to be read one at a time, invoices found one at a time, and when month-end comes around and it’s time to file an expense report, you dig through your mailbox until your eyes hurt.
In this episode, I wired my QQ Mail straight into Claude Code (CC). The result: I say one sentence and it reads every message in the inbox, sorts them, and makes it obvious at a glance which need replies and which can be ignored. Another sentence and all the subscriptions and promos, all the junk, are cleared out. Another sentence and every invoice attachment in my email gets pulled out, and the expense report comes out with it.
The whole process is three steps
Step one, turn on the service and get an authorization code. Go into QQ Mail settings, find “Account and Security,” and turn on IMAP — the name sounds intimidating, but it’s simply the door the mailbox leaves open for external programs. Click “Generate authorization code,” scan with WeChat, and you get a sixteen-character code.
One thing to be very clear about here: the authorization code is not your QQ password. It’s more like a separately cut key, and it opens this one mailbox and nothing else — receiving, sending, deleting, organizing all fall under it, but it can’t get out that door. It can’t log into your QQ and it can’t change your password, and you can void it any time from the authorization code management page. So never hand your QQ password to any program. This key is plenty.
Step two, tell CC. In plain language: “Connect this QQ mailbox and manage my email for me.” You don’t need to understand any protocol — CC already knows where the server is and what the port is. It spent a few minutes writing itself a small tool, and I didn’t have to install a thing.
Step three, use it. I said “scan my recent email,” and it read the whole inbox and automatically sorted it into four categories: normal correspondence, invoices, verification codes, and subscriptions and promos. Five messages had just come in, and it told me directly: one meeting confirmation needs a reply, two are invoices, and the rest are verification codes and a weekly-report ad I can ignore.
Once it’s sorted, a lot more becomes possible
- Cleanup: all those subscriptions and promos you’re never going to read and can’t be bothered to delete, gone with one sentence, and the inbox is suddenly clean.
- Scheduling: for that meeting confirmation, it can pull out the time, the location, and the materials to prepare, and write them straight into the todo list.
- Documents: the contracts, reports, and statements sitting in the mailbox get filed by type into the right folders, so one search finds them when you need them.
- The best part is the invoice track: it finds the messages with invoice attachments, downloads the PDFs one by one into a folder, then hands them to the expense report skill I covered in a previous episode and produces a compliant expense report directly — cover page, summary, per-invoice detail, and it even catches duplicates that were already claimed. Invoices sit in the mailbox, the expense report comes out on its own, and digging through your mailbox for invoices at month-end is gone for good.
Is it safe to let AI read your mailbox?
Three points. First, what you’re giving it is an authorization code, not a password — its permissions inside the mailbox really are broad, it can read and it can delete, but here’s the boundary that matters: it can’t get out of the mailbox, and it can’t touch your QQ account. Second, the authorization code lives locally on my own computer and doesn’t pass through any third-party server. Third, you can void it at any time. Put simply, you’ve given AI a key you can take back at any time, not handed over your house.
I’ve said this before, in the “manage AI like an employee” episode: with this employee, the more permissions you grant it, the more work it takes off your hands. Before, it could only help you write things and look things up. Now you give it the mailbox and it has another pair of hands. Further out you connect the calendar, files, and finance one by one, and it goes from being a chat tool to a digital employee genuinely doing work inside your company.
And the mailbox is exactly the thing people overlook most. It’s probably your oldest digital asset, with a decade-plus of contracts, invoices, and correspondence all sitting inside it. Letting AI take that over first has the best return of anything.
What in your mailbox would you most like AI to handle for you? Let’s talk in the comments.
Source: EP0068 digital-avatar voiceover (pinpinvoice0717b voice) · text = final voiceover script (ground truth) · timecodes aligned by gemini-2.5-pro
[00:00] Today let’s talk about something really unglamorous but a huge time-saver. Email.
[00:03] I wired my QQ Mail straight into Claude Code — CC, as we usually call it. What does it look like once it’s wired up? I say one sentence and it reads every message in my inbox, sorts them into categories, which ones need a reply and which ones I can ignore, all at a glance. I say another sentence and it clears out all the subscription and promo junk mail. One more sentence and it pulls down every invoice attachment in my email, and even puts together the expense report for me while it’s at it. All that work that used to have me digging through my inbox until my eyes hurt is now just a few sentences.
[00:25] So is this hard to do? Honestly, it’s so simple you won’t believe it. The whole thing is three steps.
[00:29] Step one. Go into QQ Mail’s settings, find Account and Security, and turn on the service called IMAP. The name looks intimidating, but you honestly don’t need to care what it means. It’s just a door the mailbox leaves open for outside programs. Once it’s on, click generate authorization code, scan with WeChat, and it hands you a sixteen-digit authorization code.
[00:43] One thing I need to call out here. This authorization code is not your QQ password. It’s more like a separately cut key, and what it governs is just the mailbox and nothing else. Receiving mail, sending mail, deleting mail, organizing — all of that is its business. But it can’t get out that door. It can’t log into your QQ, and it can’t change your password. And you can go into authorization code management any time and void that key. So never hand your QQ password to any program. Handing over this key is enough.
[01:02] Step two. Tell CC your email address and that authorization code. Just say it in plain language: wire this QQ mailbox in for me, I want you to manage my email. You don’t need to understand a single protocol. CC knows where the server is and what the port is. It spent a few minutes and wrote me a little tool. Nothing extra to install.
[01:16] Step three is just using it. I said, scan my recent email. It read the whole inbox in one go and automatically split it into four categories: normal mail, invoices, verification codes, and subscriptions and promos. Five messages had just come in, and it told me straight — one is a meeting confirmation, needs a reply; two are invoices; the rest are verification codes and weekly-newsletter ads, ignore them.
[01:32] And once the sorting’s done, there’s a lot more it can do.
[01:34] Take cleanup. Those subscriptions, promos, notifications — you’re never going to read them, and you’re too lazy to delete them, right? Now you say one sentence, clear out all the mail in that category, and it does it for you. The inbox is instantly clean.
[01:44] Take scheduling. Like that meeting confirmation just now — it can pull out the time, the place, and the materials I need to prepare, and write them straight into my to-do list. I don’t have to remember any of it myself.
[01:52] Take documents. The contracts, reports, and statements sitting in the mailbox — it can organize them by type and file them into the right folders, so when you need one, a search brings it right up.
[02:01] But the best part is still the invoice track. I said, pull down all the invoices for me. It found the emails with invoice attachments, downloaded the PDFs inside one by one, and put them in a folder. Then I hooked it up to the expense report skill I’ve covered before, handed it the folder, and out came a compliant expense report — cover page, summary, line-by-line detail for every invoice, and it can even flag invoices that got submitted twice. Invoices sit in the mailbox, the expense report comes out automatically. Digging through your inbox for invoices at the end of the month is gone for good.
[02:23] At this point someone’s definitely going to ask: letting AI both read and delete my mailbox — is that safe?
[02:27] Good question. Three points. One: what you gave it is an authorization code, not a password. Its permissions inside the mailbox really are broad, but the real boundary is that it can’t get out that mailbox door and can’t touch your QQ account. Two: that authorization code is stored locally on my own computer and never passes through any third-party server. Three: you can void it at any time. Put simply, you’ve cut AI a key you can take back whenever you want — you haven’t handed over the house.
[02:47] I’ve always held one view, and I said it in the earlier episode about managing AI like an employee. With AI as an employee, the more permissions you open up, the more work it can take off your hands. It used to only write things and look things up for you. Give it the mailbox and it gains a pair of hands. Then keep going — calendar, files, finance, wired in one by one — and it goes from being a chat tool to a digital employee actually doing work inside your company.
[03:05] And email happens to be the thing people overlook the hardest. It’s probably your oldest digital asset — a decade or more of contracts, invoices, and correspondence, all sitting in there. Letting AI take that over first gives you the best return for the effort.
[03:16] Have a think: in your own mailbox, what do you most want AI to do for you? Let’s talk in the comments.
[03:20] That’s it for this episode. See you next time. Bye.