the beginnings of an email parser