email - Tool or method to parse an incoming e mail, strip the data and push into a database -


Has done anything with scripts to parse an incoming e-mail to a specific address Extract it and put it into a SQL database?

The e-mail will be coming through the Exchange 2003 server and will be in a known fixed format, i.e.

Name: First name surname ID number: NNNNNN etc.

Ideally the solution needs to be operated on the server, not the customer. Any advice appreciated.

Originally posted to serverfault, but Crick was posted here for scripting angle.

Yes I have you are trying to fulfill it with this?

If you want to know how to parse it, the easiest way to do so is to create a simple scraper / pattern matcher for your fixed format that does not make any changes.

I usually repeat, although every line of email is in search of a specific element / identifier, after which I read many letters in a variable for a variable for the database line .

SO:

  1. Download all emails

    1. Through each email Loop
    2. Loop through each line
    3. Delete email from server


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -