← Back to home

Wiring QQ Mail into Claude Code — AI Manages Your Email, Clears the Junk, Even Fully Automates Invoice Expense Reports

Long-Form Video · EP0068 July 25, 2026 3:22
What this episode covers

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.

You've given AI a key you can take back at any time, not handed over your house.