diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-23 16:08:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-23 16:08:24 +0000 |
commit | 2237481903caa32c1b5d5042aaaca0f5ce11e0f1 (patch) | |
tree | 5ba61b5cd001e363c4a8e4f29334dd4d7632b184 /src/libserver/re_cache.c | |
parent | 0befc8068f59f4e2c34811fdb898b6ff21da3fd4 (diff) | |
download | rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.tar.gz rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.zip |
[Project] Rework API for the modified headers
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r-- | src/libserver/re_cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index d8e6d56d2..b3326bcff 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1154,8 +1154,8 @@ rspamd_re_cache_exec_re (struct rspamd_task *task, case RSPAMD_RE_HEADER: case RSPAMD_RE_RAWHEADER: /* Get list of specified headers */ - rh = rspamd_message_get_header_array (task, - re_class->type_data); + rh = rspamd_message_get_header_array(task, + re_class->type_data, FALSE); if (rh) { ret = rspamd_re_cache_process_headers_list (task, rt, re, @@ -1177,8 +1177,8 @@ rspamd_re_cache_exec_re (struct rspamd_task *task, break; case RSPAMD_RE_MIMEHEADER: PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, parts), i, mime_part) { - rh = rspamd_message_get_header_from_hash (mime_part->raw_headers, - re_class->type_data); + rh = rspamd_message_get_header_from_hash(mime_part->raw_headers, + re_class->type_data, FALSE); if (rh) { ret += rspamd_re_cache_process_headers_list (task, rt, re, @@ -1345,7 +1345,7 @@ rspamd_re_cache_exec_re (struct rspamd_task *task, * of the body content. */ - rh = rspamd_message_get_header_array (task, "Subject"); + rh = rspamd_message_get_header_array(task, "Subject", FALSE); if (rh) { scvec[0] = (guchar *)rh->decoded; |