diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-13 17:41:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-13 17:41:57 +0000 |
commit | b72c8f94ccbbe8362b38a4a9f35823367ad21a9c (patch) | |
tree | c8c79328cf10c669021b9a3df761e3bd9c5d36ab /src/libmime/message.h | |
parent | 88950e4e4f563caba44a14a40b1180be27b772d0 (diff) | |
download | rspamd-b72c8f94ccbbe8362b38a4a9f35823367ad21a9c.tar.gz rspamd-b72c8f94ccbbe8362b38a4a9f35823367ad21a9c.zip |
[Project] Preliminary version of ngramms based language detector
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r-- | src/libmime/message.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h index 90f86b3bd..5ee5b4c43 100644 --- a/src/libmime/message.h +++ b/src/libmime/message.h @@ -78,10 +78,8 @@ struct rspamd_mime_part { #define IS_PART_HTML(part) ((part)->flags & RSPAMD_MIME_TEXT_PART_FLAG_HTML) struct rspamd_mime_text_part { - guint flags; - GUnicodeScript script; - const gchar *lang_code; const gchar *language; + GPtrArray *languages; const gchar *real_charset; rspamd_ftok_t raw; rspamd_ftok_t parsed; @@ -95,6 +93,7 @@ struct rspamd_mime_text_part { GArray *normalized_words; GArray *ucs32_words; GArray *normalized_hashes; + guint flags; guint nlines; guint spaces; guint non_ascii_chars; |