using Mail for message parsing