This topic is locked
[SOLVED]

 Edit Raw Email or EML Files Like Email Client

10/2/2011 7:49:53 PM
PHPRunner General questions
M
MikeB941 author

PHPRUNNER 5.3 BUILD 7474
I have EML or raw email files stored that I'd like the user to be able to edit as if they had launched a PHP based email client for that email only (ideally also blocking the ability to change any of the from, to, cc or bcc information) that would then save back any changes to the EML or raw email file.
I've looked at several of the PHP based email clients but I haven't found one I could include that would allow me to just call the compose/edit interface to operate on a single RAW email or EML file and then save any changes back to that same RAW email or EML file.
Ideally this would be similar to one of the Rich Text Editors but would operate on an email file.
Thanks for any help, thoughts or alternative ideas.
(Basically I have a legacy system that was email based (with HTML and attachments) that's being converted to PHPRUNNER and MYSQL but I still want to effectively deal with the email / EML / raw email based information without having to parse the email files into separate MYSQL fields).

Admin 10/3/2011

I believe your best option is to parse EML files into a set of separate fields (body, subject, to, from etc) and them edit them using regular PHPRunner editing functions.
Here is the PHP class that claims to do EML files parsing:

http://www.phpclasses.org/package/3169-PHP-Decode-MIME-e-mail-messages.html