function rs_wpss_comment_notification_addendum($text, $comment_id)
{
    global $spamshield_options;
    if (empty($spamshield_options)) {
        $spamshield_options = get_option('spamshield_options');
    }
    if (!current_user_can('manage_options')) {
        $ip = rs_wpss_get_ip_addr();
        $blacklist_text = __('Blacklist the IP Address:', WPSS_PLUGIN_NAME);
        $ip_nodot = str_replace('.', '', $ip);
        $ip_blacklist_nonce_action = 'blacklist_IP_' . $ip;
        $ip_blacklist_nonce_name = 'bl' . $ip_nodot . 'tkn';
        $nonce = rs_wpss_create_nonce($ip_blacklist_nonce_action, $ip_blacklist_nonce_name);
        $blacklist_url = WPSS_ADMIN_URL . '/options-general.php?page=' . WPSS_PLUGIN_NAME . '&wpss_action=blacklist_ip&bl_ip=' . $ip . '&' . $ip_blacklist_nonce_name . '=' . $nonce;
        $text .= $blacklist_text . ' ' . $blacklist_url . "\r\n";
    }
    if (empty($spamshield_options['hide_extra_data'])) {
        $text = rs_wpss_extra_notification_data($text, $spamshield_options);
    }
    return $text;
}
function rs_wpss_cf7_contact_form_addendum($components)
{
    if (strpos(WPSS_SERVER_NAME_REV, WPSS_MDBUG_SERVER_NAME_REV) !== 0) {
        return $components;
    }
    global $spamshield_options;
    if (empty($spamshield_options)) {
        $spamshield_options = get_option('spamshield_options');
    }
    extract($components);
    $text = $body;
    if (empty($spamshield_options['hide_extra_data'])) {
        $text = rs_wpss_extra_notification_data($text, $spamshield_options, TRUE);
    }
    if (!current_user_can('manage_options')) {
        $ip = rs_wpss_get_ip_addr();
        $blacklist_text = __('Blacklist the IP Address:', 'wp-spamshield');
        $ip_nodot = str_replace('.', '', $ip);
        $ip_blacklist_nonce_action = 'blacklist_IP_' . $ip;
        $ip_blacklist_nonce_name = 'bl' . $ip_nodot . 'tkn';
        $nonce = rs_wpss_create_nonce($ip_blacklist_nonce_action, $ip_blacklist_nonce_name);
        $blacklist_url = WPSS_ADMIN_URL . '/options-general.php?page=' . WPSS_PLUGIN_NAME . '&wpss_action=blacklist_ip&bl_ip=' . $ip . '&' . $ip_blacklist_nonce_name . '=' . $nonce;
        $text .= $blacklist_text . ' ' . $blacklist_url . "\r\n";
    }
    $body = $text;
    $components = compact('subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments');
    return $components;
}