def decode_address_header_value(self, value, skip_invalid=False):

        r = []

        if isinstance(value, bytes):
            value = self.decode_text(value)[0]

        for token in value.split(','):
            name, email = parseaddr(token.strip())
            if not name and '@' not in email:
                # invalid address header content - name without email
                if not skip_invalid:
                    r.append(decode_header(email))
            else:
                r.append(compat_formataddr([decode_header(name), email]))

        return r
dataset/ETHPy150Open lavr/python-emails/emails/loader/local_store.py/MsgLoader.decode_address_header_value/original