I need a script to pars emails comming into the server and add them to a MySQL database. The server is using Sendmail.
The database fields will be as follows:
The table name is "mytable" and the database is "maindata"
The script can be done in any lang. I am sending the emails to the script using a pipe in the Aliases on FreeBSD on Unix.