Unfortunately there's no current automated bulk email migration option, but if you're using the macOS Big Sur Mail app (not sure about older versions - this is the one I have), you can drag and drop email messages and whole folders between mail accounts. This is the easiest-to-understand way to do it for home users and untechnical business users that might be using iCloud mail. Other programs may also work, but YMMV. Some programs (cough, Outlook) don't allow mail transfers, depending on the version and type of server connection (Exchange, POP, or IMAP), but Mac Mail supports moving/copying from IMAP to iCloud. If you select messages to drag and drop, it will move (i.e. delete the originals), while if you drag and drop whole folders, it will only copy.