(mime-entity-fetch-field): New method of luna-class `mime-entity'.
authormorioka <morioka>
Sat, 29 May 1999 10:47:52 +0000 (10:47 +0000)
committermorioka <morioka>
Sat, 29 May 1999 10:47:52 +0000 (10:47 +0000)
mime-def.el

index 89a696d..e36dbc4 100644 (file)
 
 (luna-define-internal-accessors 'mime-entity)
 
+(luna-define-method mime-entity-fetch-field ((entity mime-entity)
+                                            field-name)
+  (or (symbolp field-name)
+      (setq field-name (intern (capitalize (capitalize field-name)))))
+  (cdr (assq field-name
+            (mime-entity-original-header-internal entity))))
+
 
 ;;; @ for mm-backend
 ;;;