;;; Code:
(require 'mail-parse)
-(require 'mailcap)
+(require 'mm-mailcap)
(defvar mm-content-transfer-encoding-defaults
'(("text/x-patch" 8bit)
"Return a default encoding for FILE."
(if (not (string-match "\\.[^.]+$" file))
"application/octet-stream"
- (mailcap-extension-to-mime (match-string 0 file))))
+ (mm-mailcap-extension-to-mime (match-string 0 file))))
(defun mm-encode-content-transfer-encoding (encoding &optional type)
(cond
(require 'message)
(require 'nnheader)
(require 'mm-decode)
-(require 'mailcap)
+(require 'mm-mailcap)
(eval-and-compile
(autoload 'binhex-decode-region "binhex")
(mm-make-handle (mm-uu-copy-to-buffer start-char end-char)
(list (or (and file-name
(string-match "\\.[^\\.]+$" file-name)
- (mailcap-extension-to-mime
+ (mm-mailcap-extension-to-mime
(match-string 0 file-name)))
"application/octet-stream"))
'x-uuencode nil
(mm-make-handle (mm-uu-copy-to-buffer start-char end-char)
(list (or (and file-name
(string-match "\\.[^\\.]+$" file-name)
- (mailcap-extension-to-mime
+ (mm-mailcap-extension-to-mime
(match-string 0 file-name)))
"application/octet-stream"))
'x-binhex nil