working email parsing