diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 14:49:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 14:49:37 +0000 |
commit | 4aee16e53d385803b2bae74255909aa0167fd823 (patch) | |
tree | 7dec7260dd9d4dbdce9ea5d9ec3499ecd4e77eb9 /src/libmime/images.c | |
parent | 2d07ce2339f00513906be2c9fa9aa4e64d36c48b (diff) | |
download | rspamd-4aee16e53d385803b2bae74255909aa0167fd823.tar.gz rspamd-4aee16e53d385803b2bae74255909aa0167fd823.zip |
[Minor] Fix rspamd_has_only_html_part function + refactor macro names
Diffstat (limited to 'src/libmime/images.c')
-rw-r--r-- | src/libmime/images.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/images.c b/src/libmime/images.c index c54f5845a..b3baa8e4c 100644 --- a/src/libmime/images.c +++ b/src/libmime/images.c @@ -684,7 +684,7 @@ rspamd_image_process_part (struct rspamd_task *task, struct rspamd_mime_part *pa } PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, tp) { - if (IS_PART_HTML (tp) && tp->html != NULL && + if (IS_TEXT_PART_HTML (tp) && tp->html != NULL && tp->html->images != NULL) { for (j = 0; j < tp->html->images->len; j ++) { himg = g_ptr_array_index (tp->html->images, j); |