aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 18:23:22 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 18:23:22 +0400
commitecbbd935773673d8df1f2cb8334b447f7b834b5a (patch)
treef97a716b471f52c3f6e05347c1e7866d497868a4 /src/protocol.c
parent99cd57ba7f0e6b9178ccacc6987b0854ed137d83 (diff)
downloadrspamd-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.c7
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);
}