aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-26 14:49:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-26 14:49:37 +0000
commit4aee16e53d385803b2bae74255909aa0167fd823 (patch)
tree7dec7260dd9d4dbdce9ea5d9ec3499ecd4e77eb9 /src/plugins
parent2d07ce2339f00513906be2c9fa9aa4e64d36c48b (diff)
downloadrspamd-4aee16e53d385803b2bae74255909aa0167fd823.tar.gz
rspamd-4aee16e53d385803b2bae74255909aa0167fd823.zip
[Minor] Fix rspamd_has_only_html_part function + refactor macro names
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 640afcc32..633ce50ae 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -2399,7 +2399,7 @@ fuzzy_insert_metric_results (struct rspamd_task *task, struct fuzzy_rule *rule,
if (task->message) {
PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, tp) {
- if (!IS_PART_EMPTY (tp) && tp->utf_words != NULL && tp->utf_words->len > 0) {
+ if (!IS_TEXT_PART_EMPTY (tp) && tp->utf_words != NULL && tp->utf_words->len > 0) {
seen_text_part = TRUE;
if (tp->utf_stripped_text.magic == UTEXT_MAGIC) {