View Issue Details

IDProjectCategoryView StatusLast Update
0000328fileGeneralpublic2022-03-21 21:26
Reporteradepasquale Assigned Tochristos  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.41 
Fixed in Version5.42 
Summary0000328: Add various missing MIME-Types
DescriptionAdd missing MIME-Types for:
- ACE archives
- Windows CHM
- Windows URL
- Windows LNK
Tagsmagic

Activities

adepasquale

2022-03-15 10:49

reporter  

mimetypes.FILE5_41.patch (1,674 bytes)   
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index d4fd3c92..b29646b7 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -1537,6 +1537,8 @@
 # ACE archive (from http://www.wotsit.org/download.asp?f=ace)
 # by Stefan `Sec` Zehl <sec@42.org>
 7	string		**ACE**		ACE archive data
+!:mime	application/x-ace-compressed
+!:ext	ace
 >15	byte	>0		version %d
 >16	byte	=0x00		\b, from MS-DOS
 >16	byte	=0x01		\b, from OS/2
diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos
index c5862102..cda598e2 100644
--- a/magic/Magdir/msdos
+++ b/magic/Magdir/msdos
@@ -1367,6 +1367,8 @@
 
 # HtmlHelp files (.chm)
 0	string/b	ITSF\003\000\000\000\x60\000\000\000	MS Windows HtmlHelp Data
+!:mime	application/vnd.ms-htmlhelp
+!:ext	chm
 
 # GFA-BASIC (Wolfram Kleff)
 2	string/b	GFA-BASIC3	GFA-BASIC 3 data
diff --git a/magic/Magdir/os2 b/magic/Magdir/os2
index 02f27fa6..10f084d5 100644
--- a/magic/Magdir/os2
+++ b/magic/Magdir/os2
@@ -7,6 +7,8 @@
 # Provided 1998/08/22 by
 # David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
 1	search/100	InternetShortcut	MS Windows 95 Internet shortcut text
+!:mime	application/x-mswinurl
+!:ext	url
 >17	search/100	URL= 			(URL=<
 >>&0	string		x			\b%s>)
 
diff --git a/magic/Magdir/windows b/magic/Magdir/windows
index 4ec0af3e..ba532567 100644
--- a/magic/Magdir/windows
+++ b/magic/Magdir/windows
@@ -382,6 +382,8 @@
 # Created by: unknown
 # 'L' + GUUID
 0	string		\114\0\0\0\001\024\002\0\0\0\0\0\300\0\0\0\0\0\0\106	MS Windows shortcut
+!:mime	application/x-ms-shortcut
+!:ext	lnk
 >20	lelong&1	1	\b, Item id list present
 >20	lelong&2	2	\b, Points to a file or directory
 >20	lelong&4	4	\b, Has Description string
mimetypes.FILE5_41.patch (1,674 bytes)   

christos

2022-03-21 21:26

manager   ~0003716

Committed, thanks!

Issue History

Date Modified Username Field Change
2022-03-15 10:49 adepasquale New Issue
2022-03-15 10:49 adepasquale File Added: mimetypes.FILE5_41.patch
2022-03-15 10:49 adepasquale Tag Attached: magic
2022-03-21 21:25 christos Assigned To => christos
2022-03-21 21:25 christos Status new => assigned
2022-03-21 21:26 christos Status assigned => resolved
2022-03-21 21:26 christos Resolution open => fixed
2022-03-21 21:26 christos Fixed in Version => 5.42
2022-03-21 21:26 christos Note Added: 0003716