From 80e0a6ac5f69911be278c7d1ae67c8027e903e5b Mon Sep 17 00:00:00 2001 From: "cebka@lenovo-laptop" Date: Wed, 17 Mar 2010 17:24:35 +0300 Subject: * Fix statistics of messages in controller * Fix building and installing perl target * Fix learn command name * Controller's commands are now case insensitive * Statfiles can now be selected from popup list in cgi interface * Password for controller's commands can now be specified in cgi interface --- src/protocol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/protocol.c') diff --git a/src/protocol.c b/src/protocol.c index 1209f3754..8da0f174d 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -721,6 +721,7 @@ write_check_reply (struct worker_task *task) msg_info ("%s", logbuf); rspamd_dispatcher_write (task->dispatcher, CRLF, sizeof (CRLF) - 1, FALSE, TRUE); + task->worker->srv->stat->messages_scanned++; if (default_score >= default_required_score) { task->worker->srv->stat->messages_spam ++; } @@ -785,6 +786,7 @@ write_process_reply (struct worker_task *task) rspamd_dispatcher_write (task->dispatcher, outbuf, r, TRUE, FALSE); rspamd_dispatcher_write (task->dispatcher, outmsg, strlen (outmsg), FALSE, TRUE); + task->worker->srv->stat->messages_scanned++; if (default_score >= default_required_score) { task->worker->srv->stat->messages_spam ++; } -- cgit v1.2.3