E-Mail Parsing with PHP

mdnky

[Bobs/Prog/Design:~] mod%
Staff member
Mod
Anyone know of any scripts out there (free or pay) which would allow you to parse data from an e-mail message on a POP server and place it into a DB? The script would have to be run on the server.

The idea is to take an e-mail message which has a consistant title and from address, strip out information (auto generated message which has a consistent layout), and place that data into a MySQL database for further use.
 
Sounds like it would be pretty easy to do with php and/or a shell script - as long as there are some recognizable delimiters in the mail messages.

Ie: maybe use awk to parse the messages into the various parts - then just use mysql in php to distribute to a dbase. Post an example of a message and I'll try and help you out.
 
Back
Top