This is the way projects used to be, and surprisingly excellent ones still are.
The amount of knowledge built into this is incredible:
https://imapsync.lamiral.info/S/news.shtml
// imapsync did 14M to 21M mailboxes transfers per month in 2024, or 0.22% of ALL email traffic
I see that there's a free (for up to 3GB, pay for more) migration service offered there now, too: https://imapsync.lamiral.info/X/
That's a pretty cool way to support the project.
"Credentials encrypted in memory only and deleted immediately after migration".
I have no way to audit/verify this claim. You're essentially asking users to hand over the keys to their entire email history on faith.
I also can't imagine there is much demand for IMAP only email migration services these days.
That said, I was saved/pleased by Eudora2Unix [0], one of those projects that represents a very long slow burn of successive people with a similar niche struggle. You might think Thunderbird would have an import tool for that, but it's been so many years it didn't survive...
Then there's all the people who want to exit Big Tech or US-based companies right now.
Note that I used the proper IMAP terms. A mailbox is what the layman probably calls a folder or directory, a namespace is what the laymen probably would call a mailbox or account.
and being the cynical sort of person that I am, I didn't trust the fastmail importer
so I ran it, and also wrote my own implementation using the gmail api (NOT imap), and another using the fastmail jmap api, and reconciled them
100% match (bar the "Muted" folder, which fastmail ignored)
pretty much perfect
last month I moved 20 years of email
I started offlineimap before I went to bed and it finished before I woke up
It supports large mailboxes, preserves full data integrity, requires no setup, and works with any IMAP-compatible email service.