diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-03 13:03:29 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-03 13:03:29 +0400 |
commit | a2d1da15991d59bdc8663bc841258e5affd211ca (patch) | |
tree | 3354b900ff55ad570b02be1ca0172067bbbc67b9 /src/message.c | |
parent | b06c9c6e186599df1ce7e18352372ee5356684bd (diff) | |
download | rspamd-a2d1da15991d59bdc8663bc841258e5affd211ca.tar.gz rspamd-a2d1da15991d59bdc8663bc841258e5affd211ca.zip |
* Check mime regexp only in text and html parts
* Add 2 functions:
- has_content_part(type, subtype)
- has_content_part_len(type, subtype, min, max)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index 156bd1829..4d127d39d 100644 --- a/src/message.c +++ b/src/message.c @@ -316,6 +316,7 @@ mime_foreach_callback (GMimeObject *part, gpointer user_data) url_parse_html (task, part_content); text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part)); + text_part->orig = part_content; text_part->content = strip_html_tags (part_content, NULL); text_part->is_html = TRUE; text_part->fuzzy = fuzzy_init_byte_array (text_part->content, task->task_pool); @@ -327,6 +328,7 @@ mime_foreach_callback (GMimeObject *part, gpointer user_data) url_parse_text (task, part_content); text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part)); + text_part->orig = part_content; text_part->content = part_content; text_part->is_html = FALSE; text_part->fuzzy = fuzzy_init_byte_array (text_part->content, task->task_pool); |