diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-20 19:06:33 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-20 19:06:33 +0400 |
commit | 49090569c0c1e0ea3af0daefe43bc9c79d46838e (patch) | |
tree | d0ec853fc299d694dc33ad4967f9626350874888 /src/plugins/regexp.c | |
parent | c0cd8e414ad614ed7a3d9c2122abffc78db7602c (diff) | |
download | rspamd-49090569c0c1e0ea3af0daefe43bc9c79d46838e.tar.gz rspamd-49090569c0c1e0ea3af0daefe43bc9c79d46838e.zip |
* Add some debug
* Check for headers not only in message but also in its primary part
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index f057b29c2..27278b3c8 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -304,16 +304,19 @@ optimize_regexp_expression (struct expression **e, GQueue *stack, gboolean res) if (it->type == EXPR_OPERATION) { /* If this operation is just ! just inverse res and check for further operators */ if (it->content.operation == '!' && is_nearest) { + msg_debug ("optimize_regexp_expression: found '!' operator, inversing result"); res = !res; it = it->next; *e = it; continue; } else if (it->content.operation == '&' && res == FALSE) { + msg_debug ("optimize_regexp_expression: found '&' and previous expression is false"); *e = it; ret = TRUE; } else if (it->content.operation == '|' && res == TRUE) { + msg_debug ("optimize_regexp_expression: found '|' and previous expression is true"); *e = it; ret = TRUE; } |