From: tomo Date: Sat, 9 Dec 2000 03:33:10 +0000 (+0000) Subject: (mmbuffer-parse-multipart): Add new optional argument X-Git-Tag: semi21-1_14_0-pre3~1 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9056f99a184ed8fcc4c653c130ed66732f858a8;p=elisp%2Flemi.git (mmbuffer-parse-multipart): Add new optional argument `representation-type'. (mmbuffer-parse-encapsulated): Likewise. --- diff --git a/mime/mmbuffer.el b/mime/mmbuffer.el index 97fc783..6a7803a 100644 --- a/mime/mmbuffer.el +++ b/mime/mmbuffer.el @@ -262,11 +262,12 @@ ;;; @ children ;;; -(defun mmbuffer-parse-multipart (entity) +(defun mmbuffer-parse-multipart (entity &optional representation-type) (with-current-buffer (mime-buffer-entity-buffer-internal entity) - (let* ((representation-type - (mime-entity-representation-type-internal entity)) - (content-type (mime-entity-content-type-internal entity)) + (or representation-type + (setq representation-type + (mime-entity-representation-type-internal entity))) + (let* ((content-type (mime-entity-content-type-internal entity)) (dash-boundary (concat "--" (mime-content-type-parameter content-type "boundary"))) @@ -320,7 +321,8 @@ nil) )))) -(defun mmbuffer-parse-encapsulated (entity &optional external) +(defun mmbuffer-parse-encapsulated (entity &optional external + representation-type) (mime-entity-set-children-internal entity (with-current-buffer (mime-buffer-entity-buffer-internal entity) @@ -332,7 +334,8 @@ (progn (require 'mmexternal) 'mime-external-entity) - (mime-entity-representation-type-internal entity)) + (or representation-type + (mime-entity-representation-type-internal entity))) nil entity (cons 0 (mime-entity-node-id-internal entity))))))))