def review_request_published_cb(sender, user, review_request, trivial,
                                changedesc, **kwargs):
    siteconfig = SiteConfiguration.objects.get_current()

    if siteconfig.get('mail_send_review_mail') and not trivial:
        mail_review_request(review_request, user, changedesc)
Send e-mail when a review request is published.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/notifications/email.py/review_request_published_cb