aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-29 12:34:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-29 12:34:12 +0100
commitaf4041d576235b6074b2247afb15a32a396251f9 (patch)
treea7624065bcdc031c4fc9e9cbab3eda3b393a2a68 /src/libmime/message.h
parent41330a043b7881a4d1c66f835ec82878b6d1e7a3 (diff)
downloadrspamd-af4041d576235b6074b2247afb15a32a396251f9.tar.gz
rspamd-af4041d576235b6074b2247afb15a32a396251f9.zip
[Fix] More fixes to parts distance calculations
- Use hashed words instead of full words for speed - Improve levenstein distance calculations and penalise replaces - Always return number from 0 to 1 - Use g_malloc instead of alloca
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r--src/libmime/message.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h
index 59fa0b73c..3994bd102 100644
--- a/src/libmime/message.h
+++ b/src/libmime/message.h
@@ -49,6 +49,7 @@ struct mime_text_part {
GMimeObject *parent;
struct mime_part *mime_part;
GArray *normalized_words;
+ GArray *normalized_hashes;
guint nlines;
guint64 hash;
};