Added get_mail_elements() to parse emails more easily