Notify subscribers that a new comment was posted.
    FIXME: consider recipient preference to send email in correct language.

    :param recID: record id
    :param emails1: list of emails for users who can unsubscribe from discussion
    :param emails2: list of emails for users who cannot unsubscribe from discussion
    :param comID: the comment id
    :param msg: comment body
    :param note: comment title
    :param score: review star score
    :param editor_type: the kind of editor used to submit the comment: 'textarea', 'ckeditor'
    :rtype: bool
    :return: True if email was sent okay, False if it was not.

def email_subscribers_about_new_comment(recID, reviews, emails1,
                                        emails2, comID, msg="",
                                        note="", score=0,
                                        editor_type='textarea',
                                        ln=CFG_SITE_LANG, uid=-1):
    """
    Notify subscribers that a new comment was posted.
    FIXME: consider recipient preference to send email in correct language.

    :param recID: record id
    :param emails1: list of emails for users who can unsubscribe from discussion
    :param emails2: list of emails for users who cannot unsubscribe from discussion
    :param comID: the comment id
    :param msg: comment body
    :param note: comment title
    :param score: review star score
    :param editor_type: the kind of editor used to submit the comment: 'textarea', 'ckeditor'
    :rtype: bool
    :return: True if email was sent okay, False if it was not.
    """
    _ = gettext_set_language(ln)

    if not emails1 and not emails2:
        return 0

    # Get title
    titles = get_fieldvalues(recID, "245__a")
    if not titles:
        # usual title not found, try conference title:
        titles = get_fieldvalues(recID, "111__a")

    title = ''
    if titles:
        title = titles[0]
    else:
        title = _("Record %(x_rec)i", x_rec=recID)

    # Get report number
    report_numbers = get_fieldvalues(recID, "037__a")
    if not report_numbers:
        report_numbers = get_fieldvalues(recID, "088__a")
        if not report_numbers:
            report_numbers = get_fieldvalues(recID, "021__a")

    # Prepare email subject and body
    if reviews:
        email_subject = _('%(report_number)s"%(title)s" has been reviewed') % {
            'report_number': report_numbers and (
                '[' + report_numbers[0] + '] ') or '',
            'title': title}
    else:
        email_subject = _('%(report_number)s"%(title)s" has been commented') % {
            'report_number': report_numbers and (
                '[' + report_numbers[0] + '] ') or '',
            'title': title}

    washer = EmailWasher()
    msg = washer.wash(msg)
    msg = msg.replace('&gt;&gt;', '>')
    email_content = msg
    if note:
        email_content = note + email_content

    # Send emails to people who can unsubscribe
    email_header = webcomment_templates.tmpl_email_new_comment_header(
        recID,
        title,
        reviews,
        comID,
        report_numbers,
        can_unsubscribe=True,
        ln=ln,
        uid=uid)

    email_footer = webcomment_templates.tmpl_email_new_comment_footer(
        recID,
        title,
        reviews,
        comID,
        report_numbers,
        can_unsubscribe=True,
        ln=ln)
    res1 = True
    if emails1:
        res1 = send_email(fromaddr=CFG_WEBCOMMENT_ALERT_ENGINE_EMAIL,
                          toaddr=emails1,
                          subject=email_subject,
                          content=email_content,
                          header=email_header,
                          footer=email_footer,
                          ln=ln)

    # Then send email to people who have been automatically
    # subscribed to the discussion (they cannot unsubscribe)
    email_header = webcomment_templates.tmpl_email_new_comment_header(
        recID,
        title,
        reviews,
        comID,
        report_numbers,
        can_unsubscribe=False,
        ln=ln,
        uid=uid)

    email_footer = webcomment_templates.tmpl_email_new_comment_footer(
        recID,
        title,
        reviews,
        comID,
        report_numbers,
        can_unsubscribe=False,
        ln=ln)
    res2 = True
    if emails2:
        res2 = send_email(fromaddr=CFG_WEBCOMMENT_ALERT_ENGINE_EMAIL,
                          toaddr=emails2,
                          subject=email_subject,
                          content=email_content,
                          header=email_header,
                          footer=email_footer,
                          ln=ln)

    return res1 and res2