aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2013-01-07 18:32:15 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2013-01-07 18:32:15 +0400
commit012167478aa431136aa5e1522d38f6fc971868b5 (patch)
tree2b90063b6d5cb113407352fe675a03cad1d83cc8 /src/main.h
parent8a29ee5d72c589b47d81e32047361f90702a7cf3 (diff)
downloadrspamd-012167478aa431136aa5e1522d38f6fc971868b5.tar.gz
rspamd-012167478aa431136aa5e1522d38f6fc971868b5.zip
* Add rolling history feature saving last 200 scanned messages.
Add /history command handler in webui.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 9a28793cd..521e0740a 100644
--- a/src/main.h
+++ b/src/main.h
@@ -19,6 +19,7 @@
#include "events.h"
#include "util.h"
#include "logger.h"
+#include "roll_history.h"
/* Default values */
#define FIXED_CONFIG_FILE ETC_PREFIX "/rspamd.xml"
@@ -104,6 +105,7 @@ struct rspamd_main {
uid_t workers_uid; /**< worker's uid running to */
gid_t workers_gid; /**< worker's gid running to */
gboolean is_privilleged; /**< true if run in privilleged mode */
+ struct roll_history *history; /**< rolling history */
};
struct counter_data {
@@ -258,6 +260,7 @@ struct worker_task {
#endif
struct timeval tv; /**< time of connection */
struct rspamd_view *view; /**< matching view */
+ guint32 scan_milliseconds; /**< how much milliseconds passed */
gboolean view_checked;
gboolean pass_all_filters; /**< pass task throught every rule */
guint32 parser_recursion; /**< for avoiding recursion stack overflow */