def METHOD_NAME(name, email):
    if email and '@' in email:
        # split email addr at '@' symbol, ensure domain matches
        # or is a subdomain of archlinux.org
        # TODO: configurable domain/regex somewhere?
        username, domain = email.split('@', 1)
        if re.match(r'^(.+\.)?archlinux.org$', domain):
            return User.objects.get(username=username)
    return None