diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 18:23:22 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 18:23:22 +0400 |
commit | ecbbd935773673d8df1f2cb8334b447f7b834b5a (patch) | |
tree | f97a716b471f52c3f6e05347c1e7866d497868a4 /src/protocol.c | |
parent | 99cd57ba7f0e6b9178ccacc6987b0854ed137d83 (diff) | |
download | rspamd-ecbbd935773673d8df1f2cb8334b447f7b834b5a.tar.gz rspamd-ecbbd935773673d8df1f2cb8334b447f7b834b5a.zip |
* Add ability to set metric's action from config file
* Fix bug with writing garbadge if message has no urls or no messages
* Fix bug with incorrect behaviour of compare_parts_distance function
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index 999de65ab..1b349b49e 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -508,6 +508,9 @@ show_url_header (struct worker_task *task) } cur = g_list_next (cur); } + if (r == 0) { + return TRUE; + } return rspamd_dispatcher_write (task->dispatcher, outbuf, r, FALSE, FALSE); } @@ -720,6 +723,10 @@ show_messages (struct worker_task *task) cur = g_list_next (cur); } + if (r == 0) { + return TRUE; + } + return rspamd_dispatcher_write (task->dispatcher, outbuf, r, FALSE, FALSE); } |