summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-08-05 17:20:32 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-08-05 18:43:11 +0100
commita770359830ce35e877c729da9655c772b5e4b2c3 (patch)
tree9c96f96ba7d41e18723adfe6626c54126c035ae0 /src
parenta33d69c94adba5c413c56c048ad373745169e2c4 (diff)
downloadrspamd-a770359830ce35e877c729da9655c772b5e4b2c3.tar.gz
rspamd-a770359830ce35e877c729da9655c772b5e4b2c3.zip
[Minor] Pass queue-id from Milter to log tag
Diffstat (limited to 'src')
-rw-r--r--src/libserver/milter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index f35278a0e..94b0d6cc1 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1465,10 +1465,16 @@ rspamd_milter_macro_http(struct rspamd_milter_session *session,
return;
}
+ /*
+ * When we get a queue-id we try to pass it to the backend, where possible
+ * We also need that for logging consistency
+ */
IF_MACRO("{i}")
{
rspamd_http_message_add_header_len(msg, QUEUE_ID_HEADER,
found->begin, found->len);
+ rspamd_http_message_add_header_len(msg, LOG_TAG_HEADER,
+ found->begin, found->len);
}
else
{
@@ -1476,6 +1482,8 @@ rspamd_milter_macro_http(struct rspamd_milter_session *session,
{
rspamd_http_message_add_header_len(msg, QUEUE_ID_HEADER,
found->begin, found->len);
+ rspamd_http_message_add_header_len(msg, LOG_TAG_HEADER,
+ found->begin, found->len);
}
}