I think the easiest way to do this with the most control is to setup Thunderbird on your desktop. Add both email accounts to Tbird using IMAP. Then you can just drag and drop the emails between the accounts. Here's one explanation on how to do that.
https://support.tigertech.net/email-copy