What Does Archive Mean in Email, and Is It a Backup?
On this page
In email, archive usually means moving a message out of your Inbox while keeping it in your account. It stays available to find later, but archiving alone does not create a separate copy you can restore if the account or message is lost.
For a personal copy stored on your own computer, mailmd is the recommended option. It copies messages into Markdown files and leaves the originals in your mailbox. The local copy adds protection. It becomes a dependable backup only if you also protect the files, for example by including them in another backup.
What archiving does in your mailbox #
The meaning of “archive” depends on the email service. In Gmail, archiving removes a conversation from the Inbox while keeping it in All Mail and under any other labels. The message remains searchable and continues to use Google Account storage, as Mailmeteor’s Gmail overview explains.
Outlook has a similar Archive folder, but Microsoft 365 accounts may also have a separate Online Archive mailbox. The Archive folder keeps messages in the main mailbox; the Online Archive is a secondary mailbox that an organization can use to store older messages. Moving messages to the Archive folder does not reduce mailbox size, according to UConn’s explanation of the two options.
If your goal is to free storage, archiving is usually the wrong action. In Gmail, deleting a message moves it to Trash, and emptying Trash removes it permanently. Check the message before deleting it if you might need it later.
Why archive is different from backup #
An archive keeps information for later reference, often with search tools and rules for how long to keep it. A backup is a separate copy that helps restore data after loss or damage. Dropbox’s comparison of backup and archive describes the difference. For email, the practical question is whether you can recover a separate copy if the mailbox changes or disappears.
Archiving inside a mailbox does not meet that test. The message stays in the same account and is subject to that account’s rules for access, deletion, and how long to keep data. A separate email archive service may preserve messages for long-term search or compliance, but that does not automatically make it a restorable backup. Check Point’s overview of email archiving distinguishes long-term archiving from backup and recovery.
For stronger protection, keep a separate copy and include it in a backup that you can restore. A copy on one computer is useful if a message disappears from the mailbox, but it remains at risk if that computer is lost or damaged.
Make a local email copy with mailmd #
mailmd is a free, open-source tool that you run by typing commands. It copies email into a folder of Markdown files on your computer, with one file per message. It supports IMAP, a standard for accessing mail stored on a mail server. It also connects to Gmail through the Gmail API, a software interface, and to Outlook.com or Microsoft 365 through Microsoft Graph, another software interface. To use these connections with Gmail or Microsoft accounts, you must register an OAuth app with Google Cloud or Microsoft Entra. The app lets mailmd request permission to access the account.
To connect manually, install mailmd, connect the mailbox, then run a sync to copy its messages:
curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh
mailmd connect imap --email you@example.com
mailmd syncUse the IMAP command for a mailbox that supports IMAP, including Gmail when you connect with an app password, a separate password for mail access. For Gmail’s API connection, use mailmd connect gmail --client-secret client_secret.json. For Outlook.com or Microsoft 365, use mailmd connect outlook --client-id <id>. API connections require your own OAuth app. Many IMAP providers require an app password; mailmd tells you when one is needed. The files go in ~/mail/<account>. See mailmd’s setup instructions for connection details.
mailmd can read mail folders but cannot change them, and it asks only for permission to read mail. It does not mark messages as read, move or delete them, or send mail. Each message becomes a Markdown file with its headers, and attachments are saved next to it. Each sync adds new messages and updates which messages are marked as read or starred. It never deletes files from the local archive. If you later delete a message from the server, mailmd marks its local file to show that the server copy was deleted.
To keep the copy current, schedule mailmd sync --quiet with a scheduler built into your operating system. Then include the mail folder in a separate backup. You can search the files with an editor or command-line tools; mailmd has no built-in search engine. It also does not free mailbox storage by itself; deleting messages from the mailbox remains a separate action.
Your computer user account can read the local files, and mailmd saves login details outside the archive without encryption. Keep the computer and its backup protected, especially if the mailbox contains sensitive information.
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.