aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
commit32a96e82d075bdba6e9e567080977a76830cbce2 (patch)
tree028ebfd9118e5c9d33c07593eef7ea4c8b37108e /src/plugins
parent24e7403974f65b788ad81071d30c092adde97f4e (diff)
downloadrspamd-32a96e82d075bdba6e9e567080977a76830cbce2.tar.gz
rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.zip
* Do another rework of filters/metrics and statfiles processing
* Add 'probability' normalizing to winnow algorithm and calculate not pure weight but normalized probability
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/regexp.c4
-rw-r--r--src/plugins/surbl.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 6722e7b92..6213f778b 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -167,13 +167,13 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task)
}
return 0;
case REGEXP_MESSAGE:
- msg_debug ("process_message: checking mime regexp: /%s/", re->regexp_text);
+ msg_debug ("process_message: checking message regexp: /%s/", re->regexp_text);
if (g_regex_match_full (re->regexp, task->msg->buf->begin, task->msg->buf->len, 0, 0, NULL, NULL) == TRUE) {
return 1;
}
return 0;
case REGEXP_URL:
- msg_debug ("process_url: checking mime regexp: /%s/", re->regexp_text);
+ msg_debug ("process_url: checking url regexp: /%s/", re->regexp_text);
TAILQ_FOREACH (url, &task->urls, next) {
if (g_regex_match (re->regexp, struri (url), 0, NULL) == TRUE) {
return 1;
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index dc790f1bf..1a0377233 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -313,7 +313,6 @@ dns_callback (int result, char type, int count, int ttl, void *addresses, void *
}
else {
msg_debug ("surbl_check: url %s is not in surbl %s", param->url->host, surbl_module_ctx->suffix);
- insert_result (param->task, surbl_module_ctx->metric, surbl_module_ctx->symbol, 0);
}
param->task->save.saved --;