summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 23:34:03 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 23:34:03 +0100
commitaf127078a26a41e6254d97f760c2afcfea2110ef (patch)
tree4811ce74fac9f277a92623b9099a818420395dd4 /src
parent88f1e4cce514eccaff2c899d15f5f6abea30e46a (diff)
downloadrspamd-af127078a26a41e6254d97f760c2afcfea2110ef.tar.gz
rspamd-af127078a26a41e6254d97f760c2afcfea2110ef.zip
Skip URLs check and set empty flag for HTML parts.
Diffstat (limited to 'src')
-rw-r--r--src/libmime/message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index e9e0af777..46662b3fd 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1145,7 +1145,9 @@ process_text_part (struct rspamd_task *task,
task->urls,
task->emails);
- rspamd_url_text_extract (task->task_pool, task, text_part, TRUE);
+ if (text_part->content->len == 0) {
+ text_part->flags |= RSPAMD_MIME_PART_FLAG_EMPTY;
+ }
rspamd_mempool_add_destructor (task->task_pool,
(rspamd_mempool_destruct_t) free_byte_array_callback,