Guides to keeping your email

How to back up Gmail and Outlook and keep your mail as files you can read. Some guides show how a coding agent can read it for you.

Email backup

How to back up a Gmail or Outlook mailbox and keep the copy current.

All 17 guides

Export and save email

How to get your mail from Gmail or Outlook onto your computer.

All 16 guides

Email and AI agents

Letting Claude Code or Codex read your email.

All 12 guides

Archiving and storage

What archiving does and how to free up mailbox space.

All 6 guides

Tools and alternatives

Google Takeout and other backup tools, next to mailmd.

All 16 guides

Free and open source

Try mailmd

mailmd is a free command-line tool that copies your email into Markdown files on your computer, one file per message. It works with any IMAP mailbox, and with Gmail and Outlook through their own APIs.

Install

$ curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh

Set it up with your coding agent

Set up mailmd so you can read my email. Use https://github.com/vincentsch/mailmd: read its AGENTS.md and follow the steps. Connect my mailbox and run the first sync. Then show me where the files are.

More guides

Broader guides about mailboxes and email files.