tsan: make oslPipe thread-safe
[LibreOffice.git] / bin / attachment_mimetypes.py
blob40eebb8297d5a6954c0caa59ed6dcbecf037c314
1 mimetypes = {
2 # ODF
3 'application/vnd.oasis.opendocument.base': 'odb',
4 'application/vnd.oasis.opendocument.database': 'odb',
5 'application/vnd.oasis.opendocument.chart': 'odc',
6 'application/vnd.oasis.opendocument.chart-template': 'otc',
7 'application/vnd.oasis.opendocument.formula': 'odf',
8 'application/vnd.oasis.opendocument.formula-template': 'otf',
9 'application/vnd.oasis.opendocument.graphics': 'odg',
10 'application/vnd.oasis.opendocument.graphics-template': 'otg',
11 'application/vnd.oasis.opendocument.graphics-flat-xml': 'fodg',
12 'application/vnd.oasis.opendocument.presentation': 'odp',
13 'application/vnd.oasis.opendocument.presentation-template': 'otp',
14 'application/vnd.oasis.opendocument.presentation-flat-xml': 'fodp',
15 'application/vnd.oasis.opendocument.spreadsheet': 'ods',
16 'application/vnd.oasis.opendocument.spreadsheet-template': 'ots',
17 'application/vnd.oasis.opendocument.spreadsheet-flat-xml': 'fods',
18 'application/vnd.oasis.opendocument.text': 'odt',
19 'application/vnd.oasis.opendocument.text-flat-xml': 'fodt',
20 'application/vnd.oasis.opendocument.text-master': 'odm',
21 'application/vnd.oasis.opendocument.text-template': 'ott',
22 'application/vnd.oasis.opendocument.text-master-template': 'otm',
23 'application/vnd.oasis.opendocument.text-web': 'oth',
24 # OOo XML
25 'application/vnd.sun.xml.base': 'odb',
26 'application/vnd.sun.xml.calc': 'sxc',
27 'application/vnd.sun.xml.calc.template': 'stc',
28 'application/vnd.sun.xml.chart': 'sxs',
29 'application/vnd.sun.xml.draw': 'sxd',
30 'application/vnd.sun.xml.draw.template': 'std',
31 'application/vnd.sun.xml.impress': 'sxi',
32 'application/vnd.sun.xml.impress.template': 'sti',
33 'application/vnd.sun.xml.math': 'sxm',
34 'application/vnd.sun.xml.writer': 'sxw',
35 'application/vnd.sun.xml.writer.global': 'sxg',
36 'application/vnd.sun.xml.writer.template': 'stw',
37 'application/vnd.sun.xml.writer.web': 'stw',
38 # MSO
39 'application/rtf': 'rtf',
40 'text/rtf': 'rtf',
41 'application/msword': 'doc',
42 'application/vnd.ms-powerpoint': 'ppt',
43 'application/vnd.ms-excel': 'xls',
44 'application/vnd.ms-excel.sheet.binary.macroEnabled.12': 'xlsb',
45 'application/vnd.ms-excel.sheet.macroEnabled.12': 'xlsm',
46 'application/vnd.ms-excel.template.macroEnabled.12': 'xltm',
47 'application/vnd.ms-powerpoint.presentation.macroEnabled.12': 'pptm',
48 'application/vnd.ms-powerpoint.slide.macroEnabled.12': 'sldm',
49 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12': 'ppsm',
50 'application/vnd.ms-powerpoint.template.macroEnabled.12': 'potm',
51 'application/vnd.ms-word.document.macroEnabled.12': 'docm',
52 'application/vnd.ms-word.template.macroEnabled.12': 'dotm',
53 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
54 'application/vnd.openxmlformats-officedocument.spreadsheetml.template': 'xltx',
55 'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'pptx',
56 'application/vnd.openxmlformats-officedocument.presentationml.template': 'potx',
57 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': 'ppsx',
58 'application/vnd.openxmlformats-officedocument.presentationml.slide': 'sldx',
59 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'docx',
60 'application/vnd.openxmlformats-officedocument.wordprocessingml.template': 'dotx',
61 'application/vnd.visio': 'vsd',
62 'application/visio.drawing': 'vsd',
63 'application/vnd.visio2013': 'vsdx',
64 'application/vnd.visio2013': 'vstx',
65 'application/vnd.visio.xml': 'vdx',
66 'application/x-mspublisher': 'pub',
67 #WPS Office
68 'application/wps-office.doc': 'doc',
69 'application/wps-office.docx': 'docx',
70 'application/wps-office.xls': 'xls',
71 'application/wps-office.xlsx': 'xlsx',
72 'application/wps-office.ppt': 'ppt',
73 'application/wps-office.pptx': 'pptx',
74 # W3C
75 'application/xhtml+xml': 'xhtml',
76 'application/mathml+xml': 'mml',
77 'text/html': 'html',
78 'application/docbook+xml': 'docbook',
79 # misc
80 'text/csv': 'csv',
81 'text/spreadsheet': 'slk',
82 'application/x-qpro': 'qpro',
83 'application/x-dbase': 'dbf',
84 'application/vnd.corel-draw': 'cdr',
85 'application/vnd.lotus-wordpro': 'lwp',
86 'application/vnd.lotus-1-2-3': 'wks',
87 'application/vnd.wordperfect': 'wpd',
88 'application/wordperfect5.1': 'wpd',
89 'application/vnd.ms-works': 'wps',
90 'application/clarisworks' : 'cwk',
91 'application/macwriteii' : 'mw',
92 'application/vnd.apple.keynote': 'key',
93 'application/vnd.apple.numbers': 'numbers',
94 'application/vnd.apple.pages': 'pages',
95 'application/x-iwork-keynote-sffkey': 'key',
96 'application/x-iwork-numbers-sffnumbers': 'numbers',
97 'application/x-iwork-pages-sffpages': 'pages',
98 'application/x-hwp': 'hwp',
99 'application/x-aportisdoc': 'pdb',
100 'application/prs.plucker' : 'pdb_plucker',
101 'application/vnd.palm' : 'pdb_palm',
102 'application/x-sony-bbeb' : 'lrf',
103 'application/x-pocket-word': 'psw',
104 'application/x-t602': '602',
105 'application/x-fictionbook+xml': 'fb2',
106 'application/x-abiword': 'abw',
107 'application/x-pagemaker': 'pmd',
108 'application/x-gnumeric': 'gnumeric',
109 'application/vnd.stardivision.calc': 'sdc',
110 'application/vnd.stardivision.draw': 'sda',
111 'application/vnd.stardivision.writer': 'sdw',
112 'application/x-starcalc': 'sdc',
113 'application/x-stardraw': 'sdd',
114 'application/x-starwriter': 'sdw',
115 # relatively uncommon image mimetypes
116 'image/x-freehand': 'fh',
117 'image/cgm': 'cgm',
118 'image/tif': 'tiff',
119 'image/tiff': 'tiff',
120 'image/vnd.dxf': 'dxf',
121 'image/emf': 'emf',
122 'image/x-emf': 'emf',
123 'image/x-targa': 'tga',
124 'image/x-sgf': 'sgf',
125 'image/x-svm': 'svm',
126 'image/wmf': 'wmf',
127 'image/x-wmf': 'wmf',
128 'image/x-pict': 'pict',
129 'image/x-cmx': 'cmx',
130 'image/svg+xml': 'svg',
131 'image/bmp': 'bmp',
132 'image/x-ms-bmp': 'bmp',
133 'image/x-MS-bmp': 'bmp',
134 'image/x-wpg': 'wpg',
135 'image/x-eps': 'eps',
136 'image/x-met': 'met',
137 'image/x-portable-bitmap': 'pbm',
138 'image/x-photo-cd': 'pcd',
139 'image/x-pcx': 'pcx',
140 'image/x-portable-graymap': 'pgm',
141 'image/x-portable-pixmap': 'ppm',
142 'image/vnd.adobe.photoshop': 'psd',
143 'image/x-cmu-raster': 'ras',
144 'image/x-sun-raster': 'ras',
145 'image/x-xbitmap': 'xbm',
146 'image/x-xpixmap': 'xpm',
149 # disabled for now, this would download gigs of pngs/jpegs...
150 common_noncore_mimetypes = {
151 # graphics
152 'image/gif': 'gif',
153 'image/jpeg': 'jpeg',
154 'image/png': 'png',
155 # pdf, etc.
156 'application/pdf': 'pdf',