You may also be able to copy the emails over through an email client such as Thunderbird. This third-party URL references copying over the mail to Google, but it could also apply to any other IMAP account: