+2001-03-09 Akihiro Arisawa <ari@atesoft.advantest.co.jp>
+
+ * mime.el (mime-find-root-entity): Find root recursively.
+
2000-12-28 Katsumi Yamaoka <yamaoka@jpl.org>
* mel.el (binary-to-text-funcall, binary-funcall): Rewrite using
(defun mime-find-root-entity (entity)
"Return root entity of ENTITY."
- (let ((p (mime-entity-parent entity)))
- (if (null p)
- entity
- (mime-entity-parent p))))
+ (while (not (mime-root-entity-p entity))
+ (setq entity (mime-entity-parent entity)))
+ entity)
;;; @ Header buffer (obsolete)