diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 1 | ||||
-rw-r--r-- | src/message.c | 4 | ||||
-rw-r--r-- | src/protocol.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/controller.c b/src/controller.c index 69b5608e7..4133aad12 100644 --- a/src/controller.c +++ b/src/controller.c @@ -982,6 +982,7 @@ start_controller (struct rspamd_worker *worker) } comp = g_completion_new (completion_func); g_completion_add_items (comp, comp_list); + g_completion_set_compare (comp, g_ascii_strncasecmp); /* Fill hostname buf */ hostmax = sysconf (_SC_HOST_NAME_MAX) + 1; hostbuf = alloca (hostmax); diff --git a/src/message.c b/src/message.c index 225125bcc..08f1bf5f1 100644 --- a/src/message.c +++ b/src/message.c @@ -824,10 +824,6 @@ process_message (struct worker_task *task) #endif } - if (task->worker) { - task->worker->srv->stat->messages_scanned++; - } - return 0; } 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 ++; } |