]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lemove legacy
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Jul 2021 20:29:58 +0000 (21:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 4 Jul 2021 20:29:58 +0000 (21:29 +0100)
src/libmime/message.c
src/libmime/message.h
src/libmime/mime_expressions.c

index 684971cd5729b65614585e067079493e5b1469fc..9421e225be2255381b16843f9b7ed3a2447d979d 100644 (file)
@@ -764,7 +764,6 @@ rspamd_message_process_html_text_part (struct rspamd_task *task,
        }
 
 
-       text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_BALANCED;
        text_part->html = rspamd_html_process_part_full (
                        task->task_pool,
                        text_part->utf_raw_content,
index 8805fbf30eb3fe1eaab5c1a68d74b982114fa752..4549c056de9122ebabb3be623366c533c6fb3fec 100644 (file)
@@ -113,14 +113,11 @@ struct rspamd_mime_part {
 };
 
 #define RSPAMD_MIME_TEXT_PART_FLAG_UTF (1 << 0)
-#define RSPAMD_MIME_TEXT_PART_FLAG_BALANCED (1 << 1)
-#define RSPAMD_MIME_TEXT_PART_FLAG_EMPTY (1 << 2)
-#define RSPAMD_MIME_TEXT_PART_FLAG_HTML (1 << 3)
-#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT_RAW (1 << 4)
-#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT_ENCODED (1 << 5)
-#define RSPAMD_MIME_TEXT_PART_HAS_SUBNORMAL (1 << 6)
-#define RSPAMD_MIME_TEXT_PART_NORMALISED (1 << 7)
-#define RSPAMD_MIME_TEXT_PART_ATTACHMENT (1 << 8)
+#define RSPAMD_MIME_TEXT_PART_FLAG_EMPTY (1 << 1)
+#define RSPAMD_MIME_TEXT_PART_FLAG_HTML (1 << 2)
+#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT_RAW (1 << 3)
+#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT_ENCODED (1 << 4)
+#define RSPAMD_MIME_TEXT_PART_ATTACHMENT (1 << 5)
 
 #define IS_TEXT_PART_EMPTY(part) ((part)->flags & RSPAMD_MIME_TEXT_PART_FLAG_EMPTY)
 #define IS_TEXT_PART_UTF(part) ((part)->flags & RSPAMD_MIME_TEXT_PART_FLAG_UTF)
index a528be50cfd57524b78d6f8cc2d86f82eac79412..477b1dc5d3291ae8627e6fa9a1ffefc9acf5c869 100644 (file)
@@ -1564,24 +1564,8 @@ rspamd_compare_transfer_encoding (struct rspamd_task * task,
 gboolean
 rspamd_is_html_balanced (struct rspamd_task * task, GArray * args, void *unused)
 {
-       struct rspamd_mime_text_part *p;
-       guint i;
-       gboolean res = TRUE;
-
-       PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, p) {
-               if (IS_TEXT_PART_HTML (p)) {
-                       if (p->flags & RSPAMD_MIME_TEXT_PART_FLAG_BALANCED) {
-                               res = TRUE;
-                       }
-                       else {
-                               res = FALSE;
-                               break;
-                       }
-               }
-       }
-
-       return res;
-
+       /* Totally broken but seems to be never used */
+       return TRUE;
 }
 
 gboolean