len = max_re_data;
}
- while (rspamd_regexp_search (re->regexp, data, len, &start, &end, raw)) {
+ while (rspamd_regexp_search (re->regexp, data, len, &start, &end, raw, NULL)) {
r++;
if (!re->is_multiple) {
if ((r = rspamd_task_re_cache_check (task,
rspamd_regexp_get_pattern (re))) == -1) {
- r = rspamd_regexp_search (re, what, 0, NULL, NULL, FALSE);
+ r = rspamd_regexp_search (re, what, 0, NULL, NULL, FALSE, NULL);
rspamd_task_re_cache_add (task, rspamd_regexp_get_pattern (re), r);
}
return r;
if ((r = rspamd_task_re_cache_check (task,
rspamd_regexp_get_pattern (re))) == -1) {
r = rspamd_regexp_search (re, param_data, 0,
- NULL, NULL, FALSE);
+ NULL, NULL, FALSE, NULL);
rspamd_task_re_cache_add (task,
rspamd_regexp_get_pattern (re), r);
}
if ((r = rspamd_task_re_cache_check (task,
rspamd_regexp_get_pattern (re))) == -1) {
r = rspamd_regexp_search (re, param_data, 0,
- NULL, NULL, FALSE);
+ NULL, NULL, FALSE, NULL);
rspamd_task_re_cache_add (task,
rspamd_regexp_get_pattern (re), r);
}
if ((r = rspamd_task_re_cache_check (task,
rspamd_regexp_get_pattern (re))) == -1) {
r = rspamd_regexp_search (re, ct->subtype, 0,
- NULL, NULL, FALSE);
+ NULL, NULL, FALSE, NULL);
rspamd_task_re_cache_add (task,
rspamd_regexp_get_pattern (re), r);
}
if ((r = rspamd_task_re_cache_check (task,
rspamd_regexp_get_pattern (re))) == -1) {
r = rspamd_regexp_search (re, ct->type, 0,
- NULL, NULL, FALSE);
+ NULL, NULL, FALSE, NULL);
/* Also check subtype and length of the part */
if (r && param_subtype) {
r = compare_len (part, min_len, max_len) &&