aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-23 19:05:58 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-23 19:05:58 +0400
commit5022c0333ffd8ce5eca3dc9e2679b612e2c9ce99 (patch)
tree4b7fd05c9f01700ea372fb941b87312fceece513 /src/fuzzy.h
parentde94e18f57a0dccbab76efb3d574c0485a9e3700 (diff)
downloadrspamd-5022c0333ffd8ce5eca3dc9e2679b612e2c9ce99.tar.gz
rspamd-5022c0333ffd8ce5eca3dc9e2679b612e2c9ce99.zip
* Fixes to fuzzy hashing logic, skip urls while estimating fuzzy hash
Fix tags stripping. Fix phishing checks (ignore img tags).
Diffstat (limited to 'src/fuzzy.h')
-rw-r--r--src/fuzzy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fuzzy.h b/src/fuzzy.h
index b5b3856e6..271bfee2a 100644
--- a/src/fuzzy.h
+++ b/src/fuzzy.h
@@ -20,6 +20,8 @@ typedef struct fuzzy_hash_s {
guint32 hi; /**< current index in hash pipe */
} fuzzy_hash_t;
+struct mime_text_part;
+
/**
* Calculate fuzzy hash for specified string
* @param in input string
@@ -28,6 +30,9 @@ typedef struct fuzzy_hash_s {
*/
fuzzy_hash_t * fuzzy_init (f_str_t *in, memory_pool_t *pool);
fuzzy_hash_t * fuzzy_init_byte_array (GByteArray *in, memory_pool_t *pool);
+void fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool);
+
+gint fuzzy_compare_parts (struct mime_text_part *p1, struct mime_text_part *p2);
/**
* Compare score of difference between two hashes