def validate_email_with_name(value):
    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)
Logic for checking if a signed ?next= token is included in request
dataset/ETHPy150Open ui/django-post_office/post_office/validators.py/validate_email_with_name--crossover with--dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/consumer.py/Consumer.redirect_if_valid_next