Jump to >

reviewboard.notifications.email.hooks

Extension hooks for augmenting e-mail messages.

register_email_hook(signal, handler)[source]

Register an e-mail hook.

Parameters:
unregister_email_hook(signal, handler)[source]

Unregister an e-mail hook.

Parameters:
filter_email_recipients_from_hooks(to_field, cc_field, signal, **kwargs)[source]

Filter the e-mail recipients through configured e-mail hooks.

Parameters:
  • to_field (set) – The original To field of the e-mail, as a set of Users and Groups.
  • cc_field (set) – The original CC field of the e-mail, as a set of Users and Groups.
  • signal (django.dispatch.Signal) – The signal that triggered the e-mail.
  • **kwargs (dict) – Extra keyword arguments to pass to the e-mail hook.
Returns:

A 2-tuple of the To field and the CC field, as sets of Users and Groups.

Return type:

tuple