How to archive an old email account before closing it
Closing a work, school or old personal address? Keep every message readable in your mail client forever, as plain files you own.
Updated · LocalIMAP 0.1.0
Email addresses die all the time: you change jobs, graduate, cancel an internet plan whose provider gave you the address, or close a business. Once the account is gone, so is everything in it: receipts, contracts, photos, and conversations you will want to find again in ten years.
With LocalIMAP you can keep that mailbox as a read-anytime archive in the mail client you already use, stored as plain files on your own disk, without paying for the old account.
1. Create an archive account in LocalIMAP
brew install nikitaycs50/localimap/localimapOpen the dashboard with localimap and press a. Name the account after the address you're retiring, for example university or old-isp. LocalIMAP supports any number of accounts, each with its own folders and password, so archives never mix.
2. Copy every folder before the account closes
Add both the old account and the LocalIMAP account to your mail client (setup steps). Make sure the old account has downloaded everything, then drag each folder onto LocalIMAP. Don't forget Sent: half of most conversations is there.
Leaving an employer or school? Check what you're allowed to keep: personal mail is usually fine, confidential business data usually isn't. Do this before your last day; access often ends immediately.
3. Verify and back up to a ZIP file
Check the message counts in the Accounts tab, then create an archive:
localimap backup --account universityCopy the resulting localimap-university-YYYYMMDDHHMMSS-back.zip to an external drive or a second cloud. It contains standard Maildir files, so it stays readable even without LocalIMAP, and localimap restore brings it back on any computer.
4. Remove the old account from your mail client
Once you've verified the copy, remove the old account from your mail client. The archive account stays, so you can search it alongside your current mail whenever you need something.
Where the archive lives
On macOS everything is in ~/Library/Application Support/LocalIMAP/, on Linux in ~/.local/share/localimap/. Time Machine and other file backups include it automatically; run localimap paths to see the exact locations.