aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
commit2237481903caa32c1b5d5042aaaca0f5ce11e0f1 (patch)
tree5ba61b5cd001e363c4a8e4f29334dd4d7632b184 /src/libmime/mime_expressions.c
parent0befc8068f59f4e2c34811fdb898b6ff21da3fd4 (diff)
downloadrspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.tar.gz
rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.zip
[Project] Rework API for the modified headers
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index ab863aa71..d0c1704ad 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1264,8 +1264,8 @@ rspamd_header_exists (struct rspamd_task * task, GArray * args, void *unused)
return FALSE;
}
- rh = rspamd_message_get_header_array (task,
- (gchar *)arg->data);
+ rh = rspamd_message_get_header_array(task,
+ (gchar *) arg->data, FALSE);
debug_task ("try to get header %s: %d", (gchar *)arg->data,
(rh != NULL));
@@ -1653,7 +1653,7 @@ rspamd_raw_header_exists (struct rspamd_task *task, GArray * args, void *unused)
return FALSE;
}
- return rspamd_message_get_header_array (task, arg->data) != NULL;
+ return rspamd_message_get_header_array(task, arg->data, FALSE) != NULL;
}
static gboolean