diff options
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 2e00e4c46..50a84a42a 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1786,7 +1786,9 @@ rspamd_milter_process_milter_block (struct rspamd_milter_session *session, void rspamd_milter_send_task_results (struct rspamd_milter_session *session, - const ucl_object_t *results) + const ucl_object_t *results, + const gchar *new_body, + gsize bodylen) { const ucl_object_t *elt; struct rspamd_milter_private *priv = session->priv; @@ -1883,6 +1885,11 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, goto cleanup; } + if (new_body) { + rspamd_milter_send_action (session, RSPAMD_MILTER_REPLBODY, + bodylen, new_body); + } + if (priv->no_action) { msg_info_milter ("do not apply action %s, no_action is set", str_action); |