(write-body): Renamed from `write-entity-body'.
authormorioka <morioka>
Tue, 7 Jul 1998 14:00:39 +0000 (14:00 +0000)
committermorioka <morioka>
Tue, 7 Jul 1998 14:00:39 +0000 (14:00 +0000)
(eword-visible-field-p): Moved from mime.el.

mmbuffer.el

index 98ba527..3d423e1 100644 (file)
@@ -73,7 +73,7 @@
                            filename)
     ))
 
-(mm-define-method write-entity-body ((entity buffer) filename)
+(mm-define-method write-body ((entity buffer) filename)
   (save-excursion
     (set-buffer (mime-entity-buffer-internal entity))
     (write-region-as-binary (mime-entity-body-start-internal entity)
                            filename)
     ))
 
+(defun eword-visible-field-p (field-name visible-fields invisible-fields)
+  (or (catch 'found
+       (while visible-fields
+         (let ((regexp (car visible-fields)))
+           (if (string-match regexp field-name)
+               (throw 'found t)
+             ))
+         (setq visible-fields (cdr visible-fields))
+         ))
+      (catch 'found
+       (while invisible-fields
+         (let ((regexp (car invisible-fields)))
+           (if (string-match regexp field-name)
+               (throw 'found nil)
+             ))
+         (setq invisible-fields (cdr invisible-fields))
+         )
+       t)))
+
 (mm-define-method insert-decoded-header ((entity buffer)
                                         &optional invisible-fields
                                         visible-fields)