Skip to content

Commit

Permalink
[Fix] Fix rspamd_has_only_html_part
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 2, 2023
1 parent 8972626 commit 5e81edd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libmime/mime_expressions.c
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 5e81edd

Please sign in to comment.