My friend's email was hacked, the password changed, and all emails and folders deleted. They are only Apple users - Mac, iPad, iPhone. After fixing the email password and hack, this empty mailbox was unfortunately synced to an iPhone and Mac - clearing their copies of old emails. However, he still has an iPad that was switched off at the time, so to stop syncing via IMAP we changed the email password to a new one not known to the Apple ecosystem and fired up the iPad. It still has all the old emails!
How can I extract the emails from the iPad to another email box / to e.g. an EML file that can be imported, or at least to save each one as a PDF. I have tried moving them on the iPad to a folder in another email account but it does not work - it tries but then puts it back where it came from. It might work if it was logged in to the email account but that would wipe the emails, so no go. I have tried backing up using iTunes to my pc but the documentation says that emails are not backed up and I cant see any in the backup (but perhaps I am looking for the wrong thing or in the wrong place). I tried using iTunes and a 3rd part product iMazing.
I am a retired IT consultant with 40+ years experience, a reasonable knowledge of Windows PCs and a lockdown acquired ability to write JavaScript, but have limited experience of things Apple, so if you know the answer please include enough information so I can work through what may be needed.