From b1a9353b02a49451fd4ccfda3d535e243363e37f Mon Sep 17 00:00:00 2001 From: twesterhever <40121680+twesterhever@users.noreply.github.com> Date: Thu, 22 Jun 2023 21:01:26 +0000 Subject: [PATCH] Keep attachment filename suffix lists sorted --- src/plugins/lua/mime_types.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 83ea0eb004..24c107feca 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -175,40 +175,40 @@ local settings = { -- Something that should not be in archive bad_archive_extensions = { - pptx = 0.1, docx = 0.1, - xlsx = 0.1, - pdf = 0.1, + hta = 4, jar = 3, js = 0.5, + pdf = 0.1, + pptx = 0.1, vbs = 4, wsf = 4, - hta = 4, + xlsx = 0.1, }, archive_extensions = { - zip = 1, - arj = 1, - rar = 1, - ace = 1, ['7z'] = 1, - cab = 1, + ace = 1, + alz = 1, + arj = 1, bz2 = 1, + cab = 1, egg = 1, - alz = 1, - xz = 1, lz = 1, + rar = 1, + xz = 1, + zip = 1, }, -- Not really archives archive_exceptions = { - odt = true, - ods = true, - odp = true, docx = true, - xlsx = true, + odp = true, + ods = true, + odt = true, pptx = true, vsdx = true, + xlsx = true, -- jar = true, }, -- 2.47.3