parses emails