def register_email_hook(signal, handler):
 assert (signal in (review_request_published, review_request_closed, review_published, reply_published)), (u'Invalid signal %r' % signal)
 _hooks[signal].add(handler)

def register_email_hook ( signal , handler ) : assert ( signal in ( review_request_published , review_request_closed , review_published , reply_published ) ) , ( u'Invalid signal %r' % signal ) _hooks [ signal ] . add ( handler )
register an e-mail hook .