From: morioka Date: Tue, 30 Jun 1998 13:21:51 +0000 (+0000) Subject: (mmbuffer-write-entity): New function. X-Git-Tag: flim-1_8_0~22 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df95ba1c1c8cba2a36ff0f331e8a2ba8217b029;p=elisp%2Fflim.git (mmbuffer-write-entity): New function. --- diff --git a/mmbuffer.el b/mmbuffer.el index 483a696..bf6a88e 100644 --- a/mmbuffer.el +++ b/mmbuffer.el @@ -66,6 +66,13 @@ (or (mime-entity-encoding entity) "7bit")) )) +(defun mmbuffer-write-entity (entity filename) + (save-excursion + (set-buffer (mime-entity-buffer entity)) + (write-region-as-binary (mime-entity-point-min entity) + (mime-entity-point-max entity) filename) + )) + ;;; @ end ;;;