Python code for reading/parsing/saving email to a DB.