def email_list_to_email_dict(email_list):
    """Convert a list of email to a dict of email."""
    if email_list is None:
        return {}
    result = {}
    for value in email_list:
        realname, address = email.utils.parseaddr(value)
        result[address] = realname if realname and address else address
    return result
def email_list_to_email_dict ( email_list ) : if email_list is None : return { } result = { } for value in email_list : realname , address = email . utils . parseaddr ( value ) result [ address ] = realname if realname and address else address return result
Convert a list of email to a dict of email.