X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fmm-archive.el;h=9c86c4ac4f3cd2479b4dbe3db2323aaecc682959;hp=5ca6616abb58f60858ac344c9275ebfd2d9b50e6;hb=2c102003004f4fa3dd5fe1f56c66936f386c4359;hpb=45fa4ca61249cdc0ea2c06cfd0b43473e53ccf50 diff --git a/lisp/mm-archive.el b/lisp/mm-archive.el index 5ca6616ab..9c86c4ac4 100644 --- a/lisp/mm-archive.el +++ b/lisp/mm-archive.el @@ -1,6 +1,6 @@ ;;; mm-archive.el --- Functions for parsing archive files as MIME -;; Copyright (C) 2012 Free Software Foundation, Inc. +;; Copyright (C) 2012-2015 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; This file is part of GNU Emacs. @@ -22,12 +22,18 @@ ;;; Code: +(require 'mm-decode) +(autoload 'gnus-recursive-directory-files "gnus-util") +(autoload 'mailcap-extension-to-mime "mailcap") + (defvar mm-archive-decoders '(("application/ms-tnef" t "tnef" "-f" "-" "-C") ("application/zip" nil "unzip" "-j" "-x" "%f" "-d") ("application/x-gtar-compressed" nil "tar" "xzf" "-" "-C") ("application/x-tar" nil "tar" "xf" "-" "-C"))) +(defun mm-archive-decoders () mm-archive-decoders) + (defun mm-dissect-archive (handle) (let ((decoder (cddr (assoc (car (mm-handle-type handle)) mm-archive-decoders)))