summaryrefslogtreecommitdiffstats
path: root/src/libutil/multipattern.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:18:34 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-15 13:18:34 +0000
commit1d0ff299f57e94b297d4215fc4429c2aabbc40ba (patch)
tree025a056b29592a8e0734b1e59fbf0eaf66a2d65a /src/libutil/multipattern.h
parentc4ddccba821ed6ec6c54ffdf751e96172a19f6d0 (diff)
downloadrspamd-1d0ff299f57e94b297d4215fc4429c2aabbc40ba.tar.gz
rspamd-1d0ff299f57e94b297d4215fc4429c2aabbc40ba.zip
[Fix] Do not save multipatterns to FS in certain cases
Diffstat (limited to 'src/libutil/multipattern.h')
-rw-r--r--src/libutil/multipattern.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h
index 93027661d..15099aaca 100644
--- a/src/libutil/multipattern.h
+++ b/src/libutil/multipattern.h
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2016 Vsevolod Stakhov
+/*
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -117,12 +117,15 @@ void rspamd_multipattern_add_pattern(struct rspamd_multipattern *mp,
void rspamd_multipattern_add_pattern_len(struct rspamd_multipattern *mp,
const gchar *pattern, gsize patlen, gint flags);
+
+#define RSPAMD_MULTIPATTERN_COMPILE_NO_FS (0x1u << 0u)
/**
* Compiles multipattern structure
* @param mp
* @return
*/
gboolean rspamd_multipattern_compile(struct rspamd_multipattern *mp,
+ int flags,
GError **err);
/**