Getting all email out from iPhone
The easiest option is to move the mails to another account. You can open a certain mail or select multiple mails (hit edit in the mail view and select the mails). Then click the folder icon/move label and select the folder in a different account to move the mails to.