diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-21 17:38:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-21 17:40:07 +0100 |
commit | ac08fb2c7a6dbc516fca2c904d79049a2d37d3c4 (patch) | |
tree | 79924b87162ff0c333e4109f98a13369455a380e /src/libserver | |
parent | 77144b15cac31a0fdec85e830fce569c5b0d8daf (diff) | |
download | rspamd-ac08fb2c7a6dbc516fca2c904d79049a2d37d3c4.tar.gz rspamd-ac08fb2c7a6dbc516fca2c904d79049a2d37d3c4.zip |
[Feature] Allow to pass extradata from rspamd to rmilter
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/protocol.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index de1e08592..e7192dff2 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -984,6 +984,7 @@ rspamd_protocol_write_ucl (struct rspamd_task *task) ucl_object_t *top = NULL, *obj; GHashTableIter hiter; GString *dkim_sig; + const ucl_object_t *rmilter_reply; gpointer h, v; g_hash_table_iter_init (&hiter, task->results); @@ -1021,6 +1022,13 @@ rspamd_protocol_write_ucl (struct rspamd_task *task) "dkim-signature", 0, false); } + rmilter_reply = rspamd_mempool_get_variable (task->task_pool, "rmilter-reply"); + + if (rmilter_reply) { + ucl_object_insert_key (top, ucl_object_ref (rmilter_reply), + "rmilter", 0, false); + } + return top; } |