diff options
Diffstat (limited to 'src/libserver/protocol.c')
-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 1602ab76f..3bb829cab 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -431,6 +431,14 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, mta_tag, NULL); debug_task ("read MTA-Tag header, value: %s", mta_tag); } + IF_HEADER (MTA_NAME_HEADER) { + gchar *mta_name; + mta_name = rspamd_mempool_ftokdup (task->task_pool, hv_tok); + rspamd_mempool_set_variable (task->task_pool, + RSPAMD_MEMPOOL_MTA_NAME, + mta_name, NULL); + debug_task ("read MTA-Name header, value: %s", mta_name); + } break; default: debug_task ("unknown header: %V", hn); |