Hi. I've been working on a project using IMAP to fetch email. I have got that down and can parse the email fine by parsing the subject, the body, the date, etc.
What I want to do next is, to keep a copy of the source code of each email in a database. I wish to be able to avoid parsing the different parts (body, subject, etc) and instead, just parse the entire source code of each email and put it into a database. Thus, I can delete the email from my POP box, and back it up in a database so that I can manipulate the email data in the future when necessary.
Is there a function of imap() that will parse the source code of an email in its raw form? I can't seem to be able to conceptualize how to do this.
Thanks for any help on this.