I currently have a system set up which pipes emails (700/day) into a script which breaks the mail down. I then run some regexp on it to extract some information, then insert into mysql and do some other stuff.
I am not confident in the regexp I created and it only gets the minimum amount of data I need to perform post-processing, i struggled to get that far. I now need to capture all the data into MySQL.
I have seen so-called ETL tools, but havnt found anything that could be deployed in a shared cPanel hosting environment, over which I have no control. Some googling on XML bought up some interesting results on transforming non-XML data into XML, but I couldnt find a clearly written tut on how to go about it.
Does anyone know of an alternative way to do this? or have come across any good tutorials?
BTW the data in the text email look a bit like;
THIS IS A SECTION HEADER
First Name: Alfred Bloggs
Last Name: Cesear
THIS IS ANOTHER SECTION HEADER
Type of Plane: Cessna Plane Capacity: 5000cc
Etc, etc
Not everything is on a seperate line, as in Plane Capacity above, and this sometimes occurs within the message.