def filter_email_recipients_from_hooks(to_field, cc_field, signal, **kwargs):
    if signal in _hooks:
        for hook in _hooks[signal]:
            to_field = hook.get_to_field(to_field, **kwargs)
            cc_field = hook.get_cc_field(cc_field, **kwargs)

    return to_field, cc_field


# Fixes bug #3613
Filter the e-mail recipients through configured e-mail hooks.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/notifications/email.py/filter_email_recipients_from_hooks