diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-23 14:10:07 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-23 14:10:07 +0300 |
commit | c79b5ccd22cbc1c273479f4f88189a18effda533 (patch) | |
tree | 1741743779a70146a61cd1767936aa43d671e36b /src/message.h | |
parent | afdaddc4d0745a5bcefad73dd74fd4c03ae3de15 (diff) | |
download | rspamd-c79b5ccd22cbc1c273479f4f88189a18effda533.tar.gz rspamd-c79b5ccd22cbc1c273479f4f88189a18effda533.zip |
* Fix error in expression parser that causes bad errors with expressions that have regexp at the end
* Improve test for fuzzy hashes
* Add new object - TextPart to perl XS library that allows access to stripped parts and fuzzy hashes
* Add documentation for expressions parser and fot Mail::Rspamd::TextPart
* Allways calculate fuzzy hash for text parts
* Store text parts separately from other parts
* Add compare_parts_distance for expressions that calculates difference in 2 parts messages
* Do not try to substitute variables in empty strings
Diffstat (limited to 'src/message.h')
-rw-r--r-- | src/message.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/message.h b/src/message.h index 1122e7e3b..eaf9f493e 100644 --- a/src/message.h +++ b/src/message.h @@ -7,11 +7,17 @@ #define RSPAMD_MESSAGE_H #include "config.h" +#include "fuzzy.h" struct mime_part { GMimeContentType *type; GByteArray *content; - TAILQ_ENTRY (mime_part) next; +}; + +struct mime_text_part { + gboolean is_html; + GByteArray *content; + fuzzy_hash_t *fuzzy; }; /** |