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)

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 )
filter the e-mail recipients through configured e-mail hooks .