diff options
-rw-r--r-- | src/libserver/milter.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 8d8f0e9b3..2907e0414 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1458,6 +1458,16 @@ rspamd_milter_process_milter_block (struct rspamd_milter_session *session, } } } + + elt = ucl_object_lookup (obj, "change_from"); + + if (elt && ucl_object_type (elt) == UCL_STRING) { + hvalue = g_string_new (ucl_object_tostring (elt)); + rspamd_milter_send_action (session, + RSPAMD_MILTER_CHGFROM, + hvalue); + g_string_free (hvalue, TRUE); + } } if (action == METRIC_ACTION_ADD_HEADER) { |