tm 7.39.
[elisp/tm.git] / tm-rich.el
index 48c8ee1..398b60d 100644 (file)
@@ -7,7 +7,7 @@
 ;;;
 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;;; Version:
-;;;    $Id: tm-rich.el,v 7.0 1995/10/04 05:27:50 morioka Exp $
+;;;    $Id: tm-rich.el,v 7.1 1995/10/20 10:40:06 morioka Exp $
 ;;; Keywords: mail, news, MIME, multimedia, richtext, enriched
 ;;;
 ;;; This file is part of tm (Tools for MIME).
         (beg (point-min)) (end (point-max))
         )
     (remove-text-properties beg end '(face nil))
-    (cond ((string= encoding "quoted-printable")
-          (quoted-printable-decode-region beg end)
-          )
-         ((string= encoding "base64")
-          (base64-decode-region beg end)
-          ))
-    ;; end
+    (mime/decode-region encoding beg end)
     (if (and m (fboundp (setq m (cdr m))))
        (funcall m beg (point-max) charset encoding)
       (mime-viewer/default-code-convert-region beg (point-max)
         (beg (point-min)) (end (point-max))
         )
     (remove-text-properties beg end '(face nil))
-    (cond ((string= encoding "quoted-printable")
-          (quoted-printable-decode-region beg end)
-          )
-         ((string= encoding "base64")
-          (base64-decode-region beg end)
-          ))
-    ;; end
+    (mime/decode-region encoding beg end)
     (if (and m (fboundp (setq m (cdr m))))
        (funcall m beg (point-max) charset encoding)
       (mime-viewer/default-code-convert-region beg (point-max)