(insert-text-content): New method.
authormorioka <morioka>
Fri, 16 Oct 1998 02:25:29 +0000 (02:25 +0000)
committermorioka <morioka>
Fri, 16 Oct 1998 02:25:29 +0000 (02:25 +0000)
mmcooked.el
mmgeneric.el

index cd261f4..e86ae24 100644 (file)
             entity invisible-fields visible-fields)
     ))
 
+(mm-define-method insert-text-content ((entity cooked))
+  (let ((str (mime-entity-content entity)))
+    (insert
+     (if (member (mime-entity-encoding entity)
+                '(nil "7bit" "8bit" "binary"))
+        str
+       (decode-mime-charset-string str
+                                  (or (mime-content-type-parameter
+                                       (mime-entity-content-type entity)
+                                       "charset")
+                                      default-mime-charset)
+                                  'CRLF)
+       ))))
+
 
 ;;; @ end
 ;;;
index d68c9bd..41df66b 100644 (file)
                (insert "\n")
                ))))))))
 
+(mm-define-method insert-text-content ((entity generic))
+  (insert
+   (decode-mime-charset-string (mime-entity-content entity)
+                              (or (mime-content-type-parameter
+                                   (mime-entity-content-type entity)
+                                   "charset")
+                                  default-mime-charset)
+                              'CRLF)
+   ))
+
 
 ;;; @ end
 ;;;