diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-07 18:32:15 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-07 18:32:15 +0400 |
commit | 012167478aa431136aa5e1522d38f6fc971868b5 (patch) | |
tree | 2b90063b6d5cb113407352fe675a03cad1d83cc8 /src/main.c | |
parent | 8a29ee5d72c589b47d81e32047361f90702a7cf3 (diff) | |
download | rspamd-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.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 94001298d..c450500ad 100644 --- a/src/main.c +++ b/src/main.c @@ -1022,6 +1022,9 @@ main (gint argc, gchar **argv, gchar **env) config_logger (rspamd_main, type, TRUE); + /* Create rolling history */ + rspamd_main->history = rspamd_roll_history_new (rspamd_main->server_pool); + msg_info ("rspamd " RVERSION " is starting, build id: " RID); rspamd_main->cfg->cfg_name = memory_pool_strdup (rspamd_main->cfg->cfg_pool, rspamd_main->cfg->cfg_name); |