diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-19 22:31:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-19 22:31:53 +0000 |
commit | b080685caad1cb02d2a10c3d39a4bfaaf3bd7a0e (patch) | |
tree | 540fc76258662e005fb510a08be2dd95df6abda2 | |
parent | 8d759ade6e383e143b1a5ff1c4f092c7d97addb4 (diff) | |
download | rspamd-b080685caad1cb02d2a10c3d39a4bfaaf3bd7a0e.tar.gz rspamd-b080685caad1cb02d2a10c3d39a4bfaaf3bd7a0e.zip |
Process regexps from atom process function.
-rw-r--r-- | src/libmime/mime_expressions.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index 5e0f60836..393f0215f 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -840,7 +840,20 @@ rspamd_mime_expr_process_regexp (struct rspamd_regexp_atom *re, static gint rspamd_mime_expr_process (gpointer input, rspamd_expression_atom_t *atom) { + struct rspamd_task *task = input; + struct rspamd_mime_atom *mime_atom; + gint ret = 0; + g_assert (task != NULL); + g_assert (atom != NULL); + + mime_atom = atom->data; + + if (!mime_atom->is_function) { + ret = rspamd_mime_expr_process_regexp (mime_atom->d.re, task); + } + + return ret; } static gint |