]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix queue id macro in milter
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Jun 2017 11:03:09 +0000 (12:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Jun 2017 11:03:09 +0000 (12:03 +0100)
src/libserver/milter.c

index 18a9a8e24310462fda57c6f78b7e1bfa88a0b2dd..e6b40a70b7b9bfba34d98f53fb47a2e2c7ee5062 100644 (file)
@@ -1210,7 +1210,7 @@ rspamd_milter_macro_http (struct rspamd_milter_session *session,
                return;
        }
 
-       IF_MACRO("i") {
+       IF_MACRO("{i}") {
                rspamd_http_message_add_header_len (msg, QUEUE_ID_HEADER,
                                found->begin, found->len);
        }
@@ -1254,7 +1254,7 @@ rspamd_milter_macro_http (struct rspamd_milter_session *session,
        }
        else {
                /* Sendmail style */
-               IF_MACRO("j") {
+               IF_MACRO("{j}") {
                        rspamd_http_message_add_header_len (msg, MTA_NAME_HEADER,
                                        found->begin, found->len);
                }