diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-11 15:38:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-11 15:38:48 +0100 |
commit | c9bb2fe5d30f40e910295241c2ae81cc1d1b8b8d (patch) | |
tree | 950ba4dbb5ed6296ec587ddec7477a988a535365 /src/libmime/mime_headers.c | |
parent | 73137f58b41251baf87355487d1891bd4d68d11c (diff) | |
download | rspamd-c9bb2fe5d30f40e910295241c2ae81cc1d1b8b8d.tar.gz rspamd-c9bb2fe5d30f40e910295241c2ae81cc1d1b8b8d.zip |
[Minor] Move some of mempool magic constants to a separate file
Diffstat (limited to 'src/libmime/mime_headers.c')
-rw-r--r-- | src/libmime/mime_headers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index b4203f0d4..ef05bfcb3 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -17,6 +17,7 @@ #include "mime_headers.h" #include "smtp_parsers.h" #include "mime_encoding.h" +#include "libserver/mempool_vars_internal.h" static void rspamd_mime_header_check_special (struct rspamd_task *task, @@ -444,7 +445,8 @@ rspamd_mime_headers_process (struct rspamd_task *task, GHashTable *target, hexout[sizeof (hout) * 2] = '\0'; rspamd_encode_hex_buf (hout, sizeof (hout), hexout, sizeof (hout) * 2 + 1); - rspamd_mempool_set_variable (task->task_pool, "headers_hash", + rspamd_mempool_set_variable (task->task_pool, + RSPAMD_MEMPOOL_HEADERS_HASH, hexout, NULL); } } |