An example of using the JavaMail package to parse email in Processing. Also includes a simple wrapper class that avoids the jankiness of the JavaMail API (and demonstrates how to use that API). To extend yourself, checkout the JavaMail API Docs.
The example emails used here are from the Enron Email Dataset.