summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-12 21:42:44 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-13 00:25:03 +0100
commit4ff7252375b7b85eafbf176ca4e9184cc392d980 (patch)
treecdc1269e82a4fd4e301e38bdca29217ec203822c /bin
parent66fa9be298149f9db2051adf693f84ae92d3af6d (diff)
get-bugzilla-attachments-by-mimetype: more mimetypes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-bugzilla-attachments-by-mimetype106
1 files changed, 104 insertions, 2 deletions
diff --git a/bin/get-bugzilla-attachments-by-mimetype b/bin/get-bugzilla-attachments-by-mimetype
index c26ec84cec2d..67d0eba3967b 100755
--- a/bin/get-bugzilla-attachments-by-mimetype
+++ b/bin/get-bugzilla-attachments-by-mimetype
@@ -115,11 +115,113 @@ novell = 'https://bugzilla.novell.com/buglist.cgi'
mozilla = 'https://bugzilla.mozilla.org/buglist.cgi'
mimetypes = [
- ('application/msword', 'doc'),
+# ODF
+ ('application/vnd.oasis.opendocument.base', 'odb'),
+ ('application/vnd.oasis.opendocument.database', 'odb'),
+ ('application/vnd.oasis.opendocument.chart', 'odc'),
+ ('application/vnd.oasis.opendocument.chart-template', 'otc'),
+ ('application/vnd.oasis.opendocument.formula', 'odf'),
+ ('application/vnd.oasis.opendocument.formula-template', 'otf'),
+ ('application/vnd.oasis.opendocument.graphics', 'odg'),
+ ('application/vnd.oasis.opendocument.graphics-template', 'otg'),
+ ('application/vnd.oasis.opendocument.graphics-flat-xml', 'fodg'),
+ ('application/vnd.oasis.opendocument.presentation', 'odp'),
+ ('application/vnd.oasis.opendocument.presentation-template', 'otp'),
+ ('application/vnd.oasis.opendocument.presentation-flat-xml', 'fodp'),
+ ('application/vnd.oasis.opendocument.spreadsheet', 'ods'),
+ ('application/vnd.oasis.opendocument.spreadsheet-template', 'ots'),
+ ('application/vnd.oasis.opendocument.spreadsheet-flat-xml', 'fods'),
+ ('application/vnd.oasis.opendocument.text', 'odt'),
+ ('application/vnd.oasis.opendocument.text-flat-xml', 'fodt'),
+ ('application/vnd.oasis.opendocument.text-master', 'odm'),
+ ('application/vnd.oasis.opendocument.text-template', 'ott'),
+ ('application/vnd.oasis.opendocument.text-web', 'oth'),
+# OOo XML
+ ('application/vnd.sun.xml.base', 'odb'),
+ ('application/vnd.sun.xml.calc', 'sxc'),
+ ('application/vnd.sun.xml.calc.template', 'stc'),
+ ('application/vnd.sun.xml.chart', 'sxs'),
+ ('application/vnd.sun.xml.draw', 'sxd'),
+ ('application/vnd.sun.xml.draw.template', 'std'),
+ ('application/vnd.sun.xml.impress', 'sxi'),
+ ('application/vnd.sun.xml.impress.template', 'sti'),
+ ('application/vnd.sun.xml.math', 'sxm'),
+ ('application/vnd.sun.xml.writer', 'sxw'),
+ ('application/vnd.sun.xml.writer.global', 'sxg'),
+ ('application/vnd.sun.xml.writer.template', 'stw'),
+ ('application/vnd.sun.xml.writer.web', 'stw'),
+# MSO
('application/rtf', 'rtf'),
('text/rtf', 'rtf'),
- ('text/spreadsheet', 'slk'),
+ ('application/msword', 'doc'),
('application/vnd.ms-powerpoint', 'ppt'),
+ ('application/vnd.ms-excel', 'xls'),
+ ('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlsx'),
+ ('application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'xltx'),
+ ('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'pptx'),
+ ('application/vnd.openxmlformats-officedocument.presentationml.template', 'ppotx'),
+ ('application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'ppsx'),
+ ('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'docx'),
+ ('application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'dotx'),
+ ('application/vnd.visio', 'vsd'),
+# W3C
+ ('application/xhtml+xml', 'xhtml'),
+ ('application/mathml+xml', 'mml'),
+ ('text/html', 'html'),
+ ('application/docbook+xml', 'docbook'),
+# misc
+ ('text/spreadsheet', 'slk'),
+ ('application/pdf', 'pdf'),
+ ('application/vnd.corel-draw', 'cdr'),
+ ('application/vnd.lotus-wordpro', 'lwp'),
+ ('application/vnd.lotus-1-2-3', 'wks'),
+ ('application/vnd.wordperfect', 'wpd'),
+ ('application/vnd.ms-works', 'wps'),
+ ('application/x-hwp', 'hwp'),
+ ('application/x-aportisdoc', 'pdb'),
+ ('application/x-pocket-word', 'psw'),
+ ('application/x-t602', '602'),
+# binfilter
+ ('application/x-starcalc', 'sdc'),
+ ('application/vnd.stardivision.calc', 'sdc5'),
+ ('application/x-starchart', 'sds'),
+ ('application/vnd.stardivision.chart', 'sds5'),
+ ('application/x-stardraw', 'sdd_d'),
+ ('application/vnd.stardivision.draw', 'sda5'),
+ ('application/x-starimpress', 'sdd_i'),
+ ('application/vnd.stardivision.impress', 'sdd5'),
+ ('application/vnd.stardivision.impress-packed', 'sdp5'),
+ ('application/x-starmath', 'smf'),
+ ('application/vnd.stardivision.math', 'smf5'),
+ ('application/x-starwriter', 'sdw'),
+ ('application/vnd.stardivision.writer', 'sdw5'),
+ ('application/vnd.stardivision.writer-global', 'sgl5'),
+# graphics
+ ('image/svg+xml', 'svg'),
+ ('image/x-MS-bmp', 'bmp'),
+ ('image/x-wpg', 'wpg'),
+ ('image/vnd.dxf', 'dxf'),
+ ('image/x-emf', 'emf'),
+ ('image/x-eps', 'eps'),
+ ('image/x-met', 'met'),
+ ('image/x-portable-bitmap', 'pbm'),
+ ('image/x-photo-cd', 'pcd'),
+ ('image/x-pict', 'pict'),
+ ('image/x-pcx', 'pcx'),
+ ('image/x-portable-graymap', 'pgm'),
+ ('image/x-portable-pixmap', 'ppm'),
+ ('image/vnd.adobe.photoshop', 'psd'),
+ ('image/x-cmu-raster', 'ras'),
+ ('image/x-sgf', 'sgf'),
+ ('image/x-svm', 'svm'),
+ ('image/x-targa', 'tga'),
+ ('image/tiff', 'tiff'),
+ ('image/x-wmf', 'wmf'),
+ ('image/x-xbitmap', 'xbm'),
+ ('image/x-xpixmap', 'xpm'),
+ ('image/gif', 'gif'),
+ ('image/jpeg', 'jpeg'),
+ ('image/png', 'png'),
]
for (mimetype,extension) in mimetypes: