email parsing work