summaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-17 17:24:35 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-17 17:24:35 +0300
commit80e0a6ac5f69911be278c7d1ae67c8027e903e5b (patch)
tree6b4e158e08f27d163c7ec17989f7aca1594d13ea /src/protocol.c
parent8ff54fd778dbbdf807312fb563c2c440a5101a2c (diff)
downloadrspamd-80e0a6ac5f69911be278c7d1ae67c8027e903e5b.tar.gz
rspamd-80e0a6ac5f69911be278c7d1ae67c8027e903e5b.zip
* 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
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c2
1 files changed, 2 insertions, 0 deletions
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 ++;
}