aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-02 15:34:36 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-02 15:34:36 +0100
commit5e81edd4807d76fea4b66a5fb866504bbc582133 (patch)
tree6cbf8aa45688ff1b50709976a4347a3b66c0dba0 /src/libmime/mime_expressions.c
parent8972626aa15dfb41b6bfd98efcde7bbbcddc20e2 (diff)
downloadrspamd-5e81edd4807d76fea4b66a5fb866504bbc582133.tar.gz
rspamd-5e81edd4807d76fea4b66a5fb866504bbc582133.zip
[Fix] Fix `rspamd_has_only_html_part`
Diffstat (limited to 'src/libmime/mime_expressions.c')
-rw-r--r--src/libmime/mime_expressions.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index 88e9e16a1..20f2c754e 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2016 Vsevolod Stakhov
+/*
+ * Copyright 2023 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -1470,8 +1470,6 @@ rspamd_has_only_html_part(struct rspamd_task *task, GArray *args,
PTR_ARRAY_FOREACH(MESSAGE_FIELD(task, text_parts), i, p)
{
- p = g_ptr_array_index(MESSAGE_FIELD(task, text_parts), 0);
-
if (!IS_TEXT_PART_ATTACHMENT(p)) {
if (IS_TEXT_PART_HTML(p)) {
cnt_html++;