]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not treat archives as text
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Oct 2019 10:04:50 +0000 (11:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Oct 2019 10:05:45 +0000 (11:05 +0100)
src/libmime/message.c

index 6a5b4095fc7af022f824e42f960b3e12c7f4d79c..0785a3570314f72a6dd896a69e880200230e0e10 100644 (file)
@@ -1433,7 +1433,9 @@ rspamd_message_process (struct rspamd_task *task)
                        lua_settop (L, func_pos);
                }
 
-               rspamd_message_process_text_part_maybe (task, part);
+               if (!(part->flags & (RSPAMD_MIME_PART_IMAGE|RSPAMD_MIME_PART_ARCHIVE))) {
+                       rspamd_message_process_text_part_maybe (task, part);
+               }
        }
 
        if (func_pos != -1) {