aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-25 19:38:18 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-25 19:38:18 +0400
commit671bbfa9cc85a625df33d6384a3179ce076765b9 (patch)
treeac77b0439bc08ce896b614e1a95641878d35d807 /src/worker.c
parent331f6807e9ef813755f8ec197cc24915c458a684 (diff)
downloadrspamd-671bbfa9cc85a625df33d6384a3179ce076765b9.tar.gz
rspamd-671bbfa9cc85a625df33d6384a3179ce076765b9.zip
* Add post filters to lua API - filters that would be called after all message's processing
* Add ability to check for specified symbol in task results from lua * Add ability to check for metric's results from lua * Add ability to learn specified statfile form lua
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index cbd234492..427609458 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -38,7 +38,7 @@
#include "map.h"
#include "dns.h"
-#include "evdns/evdns.h"
+#include "lua/lua_common.h"
#ifndef WITHOUT_PERL
# include <EXTERN.h> /* from the Perl distribution */
@@ -359,6 +359,7 @@ read_socket (f_str_t * in, void *arg)
}
else {
process_statfiles (task);
+ lua_call_post_filters (task);
return write_socket (task);
}
break;
@@ -666,7 +667,6 @@ start_worker (struct rspamd_worker *worker)
worker->srv->pid = getpid ();
event_init ();
- evdns_init ();
init_signals (&signals, sig_handler);
sigprocmask (SIG_UNBLOCK, &signals.sa_mask, NULL);