X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fmm-archive.el;h=97da8823819dbe510e21a96de5efc10f5227dccd;hb=3bfc0af5c92752b2388a237510187be53d6bb2e7;hp=5ca6616abb58f60858ac344c9275ebfd2d9b50e6;hpb=9f6c66f015b581961a17e95720b753d10d772677;p=gnus diff --git a/lisp/mm-archive.el b/lisp/mm-archive.el index 5ca6616ab..97da88238 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-2013 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; This file is part of GNU Emacs. @@ -22,12 +22,19 @@ ;;; Code: +(require 'mm-decode) +(eval-when-compile + (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)))