aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-24 20:24:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-24 20:33:33 +0100
commit976a824a0ec586dd5bc82a86d14c3654b10fa4ef (patch)
tree1aa8bab35b43eb700cbf9ffa45578dbc76e1876b /src/libmime/mime_expressions.c
parente3748d403bf05f87ddc12d38869321557b99ad45 (diff)
downloadrspamd-976a824a0ec586dd5bc82a86d14c3654b10fa4ef.tar.gz
rspamd-976a824a0ec586dd5bc82a86d14c3654b10fa4ef.zip
[Project] Preliminary support of lua conditions for regexps
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index 6ff656cdb..8f2137d36 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -823,7 +823,7 @@ set:
mime_atom->d.re->regexp,
mime_atom->d.re->type,
mime_atom->d.re->extra.header,
- strlen (mime_atom->d.re->extra.header) + 1);
+ strlen (mime_atom->d.re->extra.header) + 1, -1);
/* Pass ownership to the cache */
rspamd_regexp_unref (own_re);
}
@@ -845,7 +845,7 @@ set:
mime_atom->d.re->regexp,
mime_atom->d.re->type,
mime_atom->d.re->extra.selector,
- strlen (mime_atom->d.re->extra.selector) + 1);
+ strlen (mime_atom->d.re->extra.selector) + 1, -1);
/* Pass ownership to the cache */
rspamd_regexp_unref (own_re);
}
@@ -865,7 +865,8 @@ set:
mime_atom->d.re->regexp,
mime_atom->d.re->type,
NULL,
- 0);
+ 0,
+ -1);
/* Pass ownership to the cache */
rspamd_regexp_unref (own_re);
}
@@ -940,7 +941,8 @@ set:
mime_atom->d.func = rspamd_mime_expr_parse_function_atom (pool,
mime_atom->str);
if (mime_atom->d.func == NULL) {
- g_set_error (err, rspamd_mime_expr_quark(), 200, "cannot parse function '%s'",
+ g_set_error (err, rspamd_mime_expr_quark(), 200,
+ "cannot parse function '%s'",
mime_atom->str);
goto err;
}