

def validate_email_with_name(value):
    '\n    Validate email address.\n\n    Both "Recipient Name <email@example.com>" and "email@example.com" are valid.\n    '
    value = force_text(value)
    if ('<' and ('>' in value)):
        start = (value.find('<') + 1)
        end = value.find('>')
        if (start < end):
            recipient = value[start:end]
    else:
        recipient = value
    validate_email(recipient)

dataset/ETHPy150Open ui/django-post_office/post_office/validators.py validate_email_with_name/original