RSPAMD_FTOK_ASSIGN (&xhtml_tok, "<html");
if (mime_part->parsed_data.len >= xhtml_tok.len &&
- rspamd_lc_cmp (mime_part->parsed_data.begin, xhtml_tok.begin, xhtml_tok.len)) {
+ rspamd_lc_cmp (mime_part->parsed_data.begin,
+ xhtml_tok.begin, xhtml_tok.len) == 0) {
found_html = TRUE;
}
else if (mime_part->parsed_data.len >= html_tok.len &&
- rspamd_lc_cmp (mime_part->parsed_data.begin, html_tok.begin, html_tok.len)) {
+ rspamd_lc_cmp (mime_part->parsed_data.begin,
+ html_tok.begin, html_tok.len) == 0) {
found_html = TRUE;
}
else {
table.insert(srch, nip)
end
end
+
table.insert(srch, 1, r['redis_key'])
ret = rspamd_redis_make_request(task,
redis_params, -- connect params
url = function()
if task:has_urls() then
local msg_urls = task:get_urls()
+
for _,url in ipairs(msg_urls) do
match_url(rule, url)
end
if not rule then
rspamd_logger.errx(rspamd_config, 'cannot add rule: "'..k..'"')
else
+ rspamd_logger.infox(rspamd_config, 'added multimap rule: %s (%s)',
+ k, rule.type)
table.insert(rules, rule)
end
end