Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is this possible? I have emails stored on my iPhone that are no longer accessible anywhere else, and I'd like to copy them out. I could forward them through a different account, but there are hundreds, so I'm looking for a shortcut.

I'm more than happy using the command line and playing with SQLite DBs that I know Apple use for some things on there, I just don't have much experience with the file structure on the iPhone.

share|improve this question
add comment

1 Answer

Unfortunately, emails are not backed up by iTunes/iCloud, so you'll need to go deep into the filesystem (you need to be jailbroken).

Assuming you are, then these are the steps you need to follow:

1) SSH into var/root/library/Mail 2) The mail database is contained inside a file called EnvelopeData. There is no .sqlite extension, but it is an SQLite database 3) Open the SQLite database using a program like MesaSQLite 4) Extract

I haven't personally tested this, but it should work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.