def parse_email(self, email_info):
name, email = rfc822.parseaddr(email_info)<EOL>if "<STR_LIT:@>" not in email:<EOL><INDENT>name = email<EOL>email = None<EOL><DEDENT>if not name:<EOL><INDENT>name = None<EOL><DEDENT>if not email:<EOL><INDENT>email = None<EOL><DEDENT>self.name = name<EOL>self.email = email<EOL>return name, email<EOL>
Allows passing emails as "Example Name <example@example.com>"

        :param email_info: Allows passing emails as
                           "Example Name <example@example.com>"
        :type email_info: string