~ubuntu-branches/ubuntu/saucy/zeitgeist/saucy

« back to all changes in this revision

Viewing changes to src/mimetype.vala

  • Committer: Package Import Robot
  • Author(s): Siegfried-Angel Gevatter Pujals
  • Date: 2012-04-10 15:44:19 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120410154419-ql22z36rnsjm0oua
Tags: 0.9.0-1
* New upstream release. Some of the changes are:
   - Updated MIME-type mappings.
   - Added a query result size limit.
   - Enhanced database/index corruption recovery.
   - Don't index events from Ubuntu One.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        try {
203
203
            register_mimetype ("application/ecmascript", NFO.SOURCE_CODE);
204
204
            register_mimetype ("application/javascript", NFO.SOURCE_CODE);
 
205
            register_mimetype ("application/json", NFO.SOURCE_CODE);
205
206
            register_mimetype ("application/ms-excel", NFO.SPREADSHEET);
206
207
            register_mimetype ("application/ms-powerpoint", NFO.PRESENTATION);
207
208
            register_mimetype ("application/msexcel", NFO.SPREADSHEET);
211
212
            register_mimetype ("application/postscript", NFO.PAGINATED_TEXT_DOCUMENT);
212
213
            register_mimetype ("application/ps", NFO.PAGINATED_TEXT_DOCUMENT);
213
214
            register_mimetype ("application/rtf", NFO.PAGINATED_TEXT_DOCUMENT);
 
215
            register_mimetype ("application/soap+xml", NFO.SOURCE_CODE);
214
216
            register_mimetype ("application/vnd.corel-draw", NFO.VECTOR_IMAGE);
215
217
            register_mimetype ("application/vnd.ms-excel", NFO.SPREADSHEET);
216
218
            register_mimetype ("application/vnd.ms-powerpoint", NFO.PRESENTATION);
236
238
            register_mimetype ("application/x-gnumeric", NFO.SPREADSHEET);
237
239
            register_mimetype ("application/x-gzip", NFO.ARCHIVE);
238
240
            register_mimetype ("application/x-java-archive", NFO.SOURCE_CODE);
 
241
            register_mimetype ("application/x-javascript", NFO.SOURCE_CODE);
239
242
            register_mimetype ("application/x-killustrator", NFO.VECTOR_IMAGE);
240
243
            register_mimetype ("application/x-kpresenter", NFO.PRESENTATION);
241
244
            register_mimetype ("application/x-kspread", NFO.SPREADSHEET);
244
247
            register_mimetype ("application/x-lzma-compressed-tar", NFO.ARCHIVE);
245
248
            register_mimetype ("application/x-m4", NFO.SOURCE_CODE);
246
249
            register_mimetype ("application/x-ms-dos-executable", NFO.SOFTWARE);
247
 
            register_mimetype ("application/x-object", NFO.SOURCE_CODE);
248
250
            register_mimetype ("application/x-perl", NFO.SOURCE_CODE);
249
251
            register_mimetype ("application/x-php", NFO.SOURCE_CODE);
250
252
            register_mimetype ("application/x-rpm", NFO.SOFTWARE);
251
253
            register_mimetype ("application/x-ruby", NFO.SOURCE_CODE);
252
254
            register_mimetype ("application/x-shellscript", NFO.SOURCE_CODE);
 
255
            register_mimetype ("application/x-shockwave-flash", NFO.EXECUTABLE);
253
256
            register_mimetype ("application/x-sql", NFO.SOURCE_CODE);
 
257
            register_mimetype ("application/x-stuffit", NFO.ARCHIVE);
254
258
            register_mimetype ("application/xhtml+xml", NFO.SOURCE_CODE);
255
259
            register_mimetype ("application/xml", NFO.SOURCE_CODE);
 
260
            register_mimetype ("application/xml-dtd", NFO.SOURCE_CODE);
256
261
            register_mimetype ("application/zip", NFO.ARCHIVE);
257
262
            register_mimetype ("audio/x-scpls", NFO.MEDIA_LIST);
258
263
            register_mimetype ("image/gif", NFO.RASTER_IMAGE);
259
264
            register_mimetype ("image/jpeg", NFO.RASTER_IMAGE);
 
265
            register_mimetype ("image/pjpeg", NFO.RASTER_IMAGE);
260
266
            register_mimetype ("image/png", NFO.RASTER_IMAGE);
261
267
            register_mimetype ("image/svg+xml", NFO.VECTOR_IMAGE);
262
268
            register_mimetype ("image/tiff", NFO.RASTER_IMAGE);
 
269
            register_mimetype ("image/vnd.microsoft.icon", NFO.ICON);
263
270
            register_mimetype ("image/x-xcf", NFO.RASTER_IMAGE);
264
271
            register_mimetype ("inode/directory", NFO.FOLDER);
 
272
            register_mimetype ("message/alternative", NMO.EMAIL);
 
273
            register_mimetype ("message/partial", NMO.EMAIL);
 
274
            register_mimetype ("message/related", NMO.EMAIL);
265
275
            register_mimetype ("text/css", NFO.SOURCE_CODE);
 
276
            register_mimetype ("text/csv", NFO.TEXT_DOCUMENT);
266
277
            register_mimetype ("text/html", NFO.HTML_DOCUMENT);
 
278
            register_mimetype ("text/javascript", NFO.SOURCE_CODE);
267
279
            register_mimetype ("text/plain", NFO.TEXT_DOCUMENT);
 
280
            register_mimetype ("text/vcard", NCO.CONTACT);
268
281
            register_mimetype ("text/x-c", NFO.SOURCE_CODE);
269
282
            register_mimetype ("text/x-c++", NFO.SOURCE_CODE);
270
283
            register_mimetype ("text/x-c++src", NFO.SOURCE_CODE);
280
293
            register_mimetype ("text/x-haskell", NFO.SOURCE_CODE);
281
294
            register_mimetype ("text/x-idl", NFO.SOURCE_CODE);
282
295
            register_mimetype ("text/x-java", NFO.SOURCE_CODE);
 
296
            register_mimetype ("text/x-jquery-tmpl", NFO.SOURCE_CODE);
283
297
            register_mimetype ("text/x-latex", NFO.SOURCE_CODE);
284
298
            register_mimetype ("text/x-lisp", NFO.SOURCE_CODE);
285
299
            register_mimetype ("text/x-lua", NFO.SOURCE_CODE);
296
310
            register_mimetype ("text/x-troff", NFO.SOURCE_CODE);
297
311
            register_mimetype ("text/x-vala", NFO.SOURCE_CODE);
298
312
            register_mimetype ("text/x-vhdl", NFO.SOURCE_CODE);
 
313
            register_mimetype ("text/xml", NFO.SOURCE_CODE);
299
314
 
300
315
            register_mimetype_regex (".*/x-dvi", NFO.PAGINATED_TEXT_DOCUMENT);
301
 
            register_mimetype_regex (
302
 
                "application/vnd.oasis.opendocument.text.*",
303
 
                NFO.PAGINATED_TEXT_DOCUMENT);
304
 
            register_mimetype_regex (
305
 
                "application/vnd.oasis.opendocument.presentation.*",
306
 
                NFO.PRESENTATION);
307
 
            register_mimetype_regex (
308
 
                "application/vnd.oasis.opendocument.spreadsheet.*",
309
 
                NFO.SPREADSHEET);
310
 
            register_mimetype_regex (
311
 
                "application/vnd.oasis.opendocument.graphics.*",
312
 
                NFO.VECTOR_IMAGE);
 
316
            register_mimetype_regex ("application/vnd.ms-excel.*", NFO.SPREADSHEET);
 
317
            register_mimetype_regex ("application/vnd.ms-powerpoint.*", NFO.PRESENTATION);
 
318
            register_mimetype_regex ("application/vnd.oasis.opendocument.graphics.*", NFO.VECTOR_IMAGE);
 
319
            register_mimetype_regex ("application/vnd.oasis.opendocument.presentation.*", NFO.PRESENTATION);
 
320
            register_mimetype_regex ("application/vnd.oasis.opendocument.spreadsheet.*", NFO.SPREADSHEET);
 
321
            register_mimetype_regex ("application/vnd.oasis.opendocument.text.*", NFO.PAGINATED_TEXT_DOCUMENT);
 
322
            register_mimetype_regex ("application/vnd.openxmlformats-officedocument.presentationml.presentation.*", NFO.PRESENTATION);
 
323
            register_mimetype_regex ("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.*", NFO.SPREADSHEET);
 
324
            register_mimetype_regex ("application/vnd.openxmlformats-officedocument.wordprocessingml.document.*", NFO.PAGINATED_TEXT_DOCUMENT);
313
325
            register_mimetype_regex ("application/vnd\\..*", NFO.DOCUMENT);
314
326
            register_mimetype_regex ("application/x-applix-.*", NFO.DOCUMENT);
315
 
            register_mimetype_regex ("application/vnd.ms-excel.*",
316
 
                NFO.SPREADSHEET);
317
 
            register_mimetype_regex ("application/vnd.ms-powerpoint.*",
318
 
                NFO.PRESENTATION);
319
327
            register_mimetype_regex ("audio/.*", NFO.AUDIO);
320
328
            register_mimetype_regex ("image/.*", NFO.IMAGE);
321
329
            register_mimetype_regex ("video/.*", NFO.VIDEO);