(mime-write-entity-body): Use implementation of mm-backend.
authormorioka <morioka>
Tue, 30 Jun 1998 14:01:52 +0000 (14:01 +0000)
committermorioka <morioka>
Tue, 30 Jun 1998 14:01:52 +0000 (14:01 +0000)
mime.el

diff --git a/mime.el b/mime.el
index ba95a43..cc3ef20 100644 (file)
--- a/mime.el
+++ b/mime.el
@@ -400,14 +400,7 @@ ENTITY is used."
 
 (defun mime-write-entity-body (entity filename)
   "Write body of ENTITY into FILENAME."
-  (save-excursion
-    (set-buffer (mime-entity-buffer entity))
-    (if (mime-entity-cooked-p entity)
-       (write-region (mime-entity-body-start entity)
-                     (mime-entity-body-end entity) filename)
-      (write-region-as-binary (mime-entity-body-start entity)
-                             (mime-entity-body-end entity) filename)
-      )))
+  (mime-entity-send entity 'write-entity-body filename))
 
 
 ;;; @ end