summaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend.h
diff options
context:
space:
mode:
authorLarry Hynes <larry@larryhynes.com>2016-05-13 19:45:03 +0100
committerLarry Hynes <larry@larryhynes.com>2016-05-13 19:45:03 +0100
commit96b4bd69ef1e5e30cb0d1ffad2617b2c7bfd629d (patch)
tree2179566b59a65ae27500c2e4e9dcae7149d60486 /src/libserver/fuzzy_backend.h
parent5559a4a7b7ff358545a434434a94c3b9e82e0976 (diff)
parent25b777b360662a391454f64346589dbec792831f (diff)
downloadrspamd-96b4bd69ef1e5e30cb0d1ffad2617b2c7bfd629d.tar.gz
rspamd-96b4bd69ef1e5e30cb0d1ffad2617b2c7bfd629d.zip
Merge remote-tracking branch 'upstream/master'
* upstream/master: (36 commits) [Feature] Add versions to fuzzy storage [Fix] Another fix for maps scheduling [Fix] Fix events handling when scheduling map wacth [Fix] Try to fix false positive URL detections in text parts [Fix] Include fuzzy key to distinguish storages with different keys [Feature] Rework and improve fuzzy storage [Test] Add static test for shingles [Minor] Adjust hashes [Feature] Use metrohash as well [Minor] 8 bytes fits perfect for mumhash [Fix] Fix handling of the same words [Feature] Further micro-optimizations for hashing and shingles [Feature] Optimize alignment to speed up hashing [Feature] Try to select the optimal possible function for input [Feature] Limit logging of elements that could have too many items [Feature] Add more algorithms for shingles generation [Fix] Fix compilation issue [Feature] Use mumhash for words hashing [Feature] Add and use mumhash for non-crypto hashing [Feature] Add a simple script to evaluate rspamd rules in the logs ...
Diffstat (limited to 'src/libserver/fuzzy_backend.h')
-rw-r--r--src/libserver/fuzzy_backend.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/fuzzy_backend.h b/src/libserver/fuzzy_backend.h
index 04da9bbba..bcd199d1a 100644
--- a/src/libserver/fuzzy_backend.h
+++ b/src/libserver/fuzzy_backend.h
@@ -56,7 +56,8 @@ gboolean rspamd_fuzzy_backend_prepare_update (struct rspamd_fuzzy_backend *backe
*/
gboolean rspamd_fuzzy_backend_add (
struct rspamd_fuzzy_backend *backend,
- const struct rspamd_fuzzy_cmd *cmd);
+ const struct rspamd_fuzzy_cmd *cmd,
+ time_t timestamp);
/**
* Delete digest from the database
@@ -89,6 +90,7 @@ gboolean rspamd_fuzzy_backend_sync (struct rspamd_fuzzy_backend *backend,
void rspamd_fuzzy_backend_close (struct rspamd_fuzzy_backend *backend);
gsize rspamd_fuzzy_backend_count (struct rspamd_fuzzy_backend *backend);
+gint rspamd_fuzzy_backend_version (struct rspamd_fuzzy_backend *backend);
gsize rspamd_fuzzy_backend_expired (struct rspamd_fuzzy_backend *backend);
const gchar * rspamd_fuzzy_backend_id (struct rspamd_fuzzy_backend *backend);