Migrating email from one account to another account is very simple you can use a tool called imapsync it’s a very popular tool available online and its open source and platform independent, so you can use it on Linux, windows and Mac.