a rudimentary example of parsing email data