237
240
("octet-stream" ("type" "" "tar" "shar"))
245
("x-shockwave-flash")
249
("vnd.oasis.opendocument.text")
250
("vnd.oasis.opendocument.spreadsheet")
251
("vnd.oasis.opendocument.graphics")
252
("vnd.oasis.opendocument.chart")
253
("vnd.oasis.opendocument.formula")
254
("vnd.oasis.opendocument.text-master")
255
("vnd.oasis.opendocument.presentation")
256
("vnd.oasis.opendocument.text-template")
257
("vnd.oasis.opendocument.spreadsheet-template")
258
("vnd.oasis.opendocument.presentation-template")
259
("vnd.oasis.opendocument.graphics-template")
242
263
("vnd.ms-powerpoint")
264
; Microsoft Office (OpenXML)
265
("vnd.ms-excel.addin.macroEnabled.12")
266
("vnd.ms-excel.sheet.binary.macroEnabled.12")
267
("vnd.ms-excel.sheet.macroEnabled.12")
268
("vnd.ms-excel.template.macroEnabled.12")
269
("vnd.ms-powerpoint.addin.macroEnabled.12")
270
("vnd.ms-powerpoint.presentation.macroEnabled.12")
271
("vnd.ms-powerpoint.slideshow.macroEnabled.12")
272
("vnd.ms-powerpoint.template.macroEnabled.12")
273
("vnd.ms-word.document.macroEnabled.12")
274
("vnd.ms-word.template.macroEnabled.12")
275
("vnd.openxmlformats-officedocument.presentationml.presentation")
276
("vnd.openxmlformats-officedocument.presentationml.slideshow")
277
("vnd.openxmlformats-officedocument.presentationml.template")
278
("vnd.openxmlformats-officedocument.spreadsheetml.sheet")
279
("vnd.openxmlformats-officedocument.spreadsheetml.template")
280
("vnd.openxmlformats-officedocument.wordprocessingml.document")
281
("vnd.openxmlformats-officedocument.wordprocessingml.template")
282
("vnd.ms-xpsdocument")
243
285
("x-kiss" ("x-cnf")))
257
308
"*Alist of content-type, subtype, parameters and its values.")
259
310
(defcustom mime-file-types
317
386
"text" "plain" nil nil nil nil)
320
;; Octect binary text
390
"application" "javascript" nil
392
"inline" (("filename" . file))
398
"application" "vnd.ms-project" nil
400
"attachment" (("filename" . file))
404
;; Microsoft Office (none-OpenXML)
406
("\\.rtf$" ; Rich text format
407
"application" "rtf" nil
409
"attachment" (("filename" . file))
322
411
("\\.doc$" ;MS Word
323
412
"application" "msword" nil
335
424
"attachment" (("filename" . file))
341
"inline" (("filename" . file))
428
;; Microsoft Office (OpenXML)
432
"application" "vnd.ms-word.document.macroEnabled.12" nil
434
"attachment" (("filename" . file))
437
"application" "vnd.openxmlformats-officedocument.wordprocessingml.document" nil
439
"attachment" (("filename" . file))
442
"application" "vnd.ms-word.template.macroEnabled.12" nil
444
"attachment" (("filename" . file))
447
"application" "vnd.openxmlformats-officedocument.wordprocessingml.template" nil
449
"attachment" (("filename" . file))
454
"application" "vnd.ms-powerpoint.template.macroEnabled.12" nil
456
"attachment" (("filename" . file))
459
"application" "vnd.openxmlformats-officedocument.presentationml.template" nil
461
"attachment" (("filename" . file))
464
"application" "vnd.ms-powerpoint.addin.macroEnabled.12" nil
466
"attachment" (("filename" . file))
469
"application" "vnd.ms-powerpoint.slideshow.macroEnabled.12" nil
471
"attachment" (("filename" . file))
474
"application" "vnd.openxmlformats-officedocument.presentationml.slideshow" nil
476
"attachment" (("filename" . file))
479
"application" "vnd.ms-powerpoint.presentation.macroEnabled.12" nil
481
"attachment" (("filename" . file))
484
"application" "vnd.openxmlformats-officedocument.presentationml.presentation" nil
486
"attachment" (("filename" . file))
491
"application" "vnd.ms-excel.addin.macroEnabled.12" nil
493
"attachment" (("filename" . file))
496
"application" "vnd.ms-excel.sheet.binary.macroEnabled.12" nil
498
"attachment" (("filename" . file))
501
"application" "vnd.ms-excel.sheet.macroEnabled.12" nil
503
"attachment" (("filename" . file))
506
"application" "vnd.openxmlformats-officedocument.spreadsheetml.sheet" nil
508
"attachment" (("filename" . file))
511
"application" "vnd.ms-excel.template.macroEnabled.12" nil
513
"attachment" (("filename" . file))
516
"application" "vnd.openxmlformats-officedocument.spreadsheetml.template" nil
518
"attachment" (("filename" . file))
524
"application" "vnd.oasis.opendocument.text" nil
526
"attachment" (("filename" . file))
529
"application" "vnd.oasis.opendocument.spreadsheet" nil
531
"attachment" (("filename" . file))
534
"application" "vnd.oasis.opendocument.graphics" nil
536
"attachment" (("filename" . file))
539
"application" "vnd.oasis.opendocument.formula" nil
541
"attachment" (("filename" . file))
544
"application" "vnd.oasis.opendocument.text-master" nil
546
"attachment" (("filename" . file))
549
"application" "vnd.oasis.opendocument.presentation" nil
551
"attachment" (("filename" . file))
554
"application" "vnd.oasis.opendocument.text-template" nil
556
"attachment" (("filename" . file))
559
"application" "vnd.oasis.opendocument.spreadsheet-template" nil
561
"attachment" (("filename" . file))
564
"application" "vnd.oasis.opendocument.presentation-template" nil
566
"attachment" (("filename" . file))
569
"application" "vnd.oasis.opendocument.graphics-template" nil
571
"attachment" (("filename" . file))
574
;; Postscript and PDF
344
576
"application" "postscript" nil
394
636
"inline" (("filename" . file))
397
642
"audio" "basic" nil
399
644
"attachment" (("filename" . file))
646
("\\.mp[234]\\|\\.m4[abp]$"
649
"attachment" (("filename" . file))
654
"attachment" (("filename" . file))
659
"attachment" (("filename" . file))
402
662
"video" "mpeg" nil
404
664
"attachment" (("filename" . file))
669
"attachment" (("filename" . file))
672
"video" "quicktime" nil
674
"attachment" (("filename" . file))
679
"attachment" (("filename" . file))
682
"application" "x-shockwave-flash" nil
684
"attachment" (("filename" . file))
407
691
"application" "octet-stream" (("type" . "tar+gzip"))
1157
1446
(disposition-type (nth 4 guess))
1158
1447
(disposition-params (nth 5 guess))
1161
(setq type (mime-prompt-for-type type)
1449
(if (or (interactive-p) verbose)
1450
(setq type (mime-prompt-for-type type)
1162
1451
subtype (mime-prompt-for-subtype type subtype)
1164
(if (or (interactive-p) verbose)
1165
(setq encoding (mime-prompt-for-encoding encoding))
1452
encoding (mime-prompt-for-encoding encoding)))
1167
1453
(if (or (consp parameters) (stringp disposition-type))
1168
1454
(let ((rest parameters) cell attribute value)
1169
1455
(setq parameters "")