Added simple email parsing