aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-01-24 20:45:54 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-01-24 20:45:54 +0300
commit76b69f300d8372969b6143e3e269376229d03edf (patch)
treed9c4dc4bfed5635869f2c9d83e9ebb94d00903a1 /src/plugins/regexp.c
parentb0d0a4ce50733ce162ce9738da2d416497f98763 (diff)
downloadrspamd-76b69f300d8372969b6143e3e269376229d03edf.tar.gz
rspamd-76b69f300d8372969b6143e3e269376229d03edf.zip
* Many fixes to fuzzy hashes logic and tokenization.
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 4e1f8f61c..ce6599e86 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -725,13 +725,15 @@ process_regexp (struct rspamd_regexp *re, struct worker_task *task, const gchar
}
if (g_regex_match_full (regexp, ct, clen, 0, 0, NULL, &err) == TRUE) {
if (G_UNLIKELY (re->is_test)) {
- msg_info ("process test regexp %s for mime part returned TRUE", re->regexp_text);
+ msg_info ("process test regexp %s for mime part of length %d returned TRUE", re->regexp_text,
+ (gint)clen);
}
task_cache_add (task, re, 1);
return 1;
}
else if (G_UNLIKELY (re->is_test)) {
- msg_info ("process test regexp %s for mime part of length %d returned FALSE", re->regexp_text, (gint)part->orig->len);
+ msg_info ("process test regexp %s for mime part of length %d returned FALSE", re->regexp_text,
+ (gint)clen);
}
if (err != NULL) {
msg_info ("error occured while processing regexp \"%s\": %s", re->regexp_text, err->message);