explorador - 10:44 pm on Aug 13, 2013 (gmt 0)
Hi there, I'm having problems here.
I need to read html email already on the cpanel server. Emails are stored as files on /mail/server/account/new in some weird format. I'm not using perl to get in the mailbox and read it because it required extra modules and I don't like it, personal choice (it affects emergency migrations from server to server if such things are not installed) so my approach is reading the file.
Yes, I'm, reading the file stored there and I'm getting work done on simple text emails. It works. The problem is when the user replies using html email like yahoo, hotmail or outlook configured html email with signatures, etc. This way I get a lot of garbage.
It's not as simple as striping the html, diff mail clients insert diff garbage. Any suggestions?
What this is all about:
I'm building my own hosted tool for customer support, I have a network of sites and I'm tired of using outlook/opera to answer each mail from specific accounts. So my tool allows me to read the emails sent via website form and then reply with templates or whatever comes to my mind, keeping the original server email account. I can see the whole cases as if it was a forum, a ticket system. Identifying the emails per case and keeping it that way was easier than I thought, but html email is not.
Please keep in mind: personal choice, no mysql, no third party ticket systems, no Gmail, no paid things, pure personal choice. I just need to read the html email and convert it into plain email text.
Thanks in advance.