def mail_reply(reply, user):
 review = reply.base_reply_to
 review_request = review.review_request
 if (not review_request.public):
  return
 extra_context = {u'user': reply.user, u'review': review, u'reply': reply}
 (has_error, extra_context[u'comment_entries']) = build_diff_comment_fragments(reply.comments.order_by(u'filediff', u'first_line'), extra_context, u'notifications/email_diff_comment_fragment.html')
 reviewer = reply.user
 (to_field, cc_field) = build_recipients(reviewer, review_request, review_request.participants)
 (to_field, cc_field) = filter_email_recipients_from_hooks(to_field, cc_field, reply_published, reply=reply, user=user, review=review, review_request=review_request)
 summary = _ensure_unicode(review_request.summary)
 reply.email_message_id = send_review_mail(user, review_request, (u'Re: Review Request %d: %s' % (review_request.display_id, summary)), review.email_message_id, to_field, cc_field, u'notifications/reply_email.txt', u'notifications/reply_email.html', extra_context)
 reply.time_emailed = timezone.now()
 reply.save()

def mail_reply ( reply , user ) : review = reply . base_reply_to review_request = review . review_request if ( not review_request . public ) : return extra_context = { u'user' : reply . user , u'review' : review , u'reply' : reply } ( has_error , extra_context [ u'comment_entries' ] ) = build_diff_comment_fragments ( reply . comments . order_by ( u'filediff' , u'first_line' ) , extra_context , u'notifications/email_diff_comment_fragment.html' ) reviewer = reply . user ( to_field , cc_field ) = build_recipients ( reviewer , review_request , review_request . participants ) ( to_field , cc_field ) = filter_email_recipients_from_hooks ( to_field , cc_field , reply_published , reply = reply , user = user , review = review , review_request = review_request ) summary = _ensure_unicode ( review_request . summary ) reply . email_message_id = send_review_mail ( user , review_request , ( u'Re: Review Request %d: %s' % ( review_request . display_id , summary ) ) , review . email_message_id , to_field , cc_field , u'notifications/reply_email.txt' , u'notifications/reply_email.html' , extra_context ) reply . time_emailed = timezone . now ( ) reply . save ( )
send an e-mail representing the supplied reply to a review .