(mime-type/subtype-string): New function (moved from
authormorioka <morioka>
Wed, 6 May 1998 10:57:54 +0000 (10:57 +0000)
committermorioka <morioka>
Wed, 6 May 1998 10:57:54 +0000 (10:57 +0000)
semi/mime-parse.el).

mime-def.el

index 779c984..8e40b08 100644 (file)
          "][" quoted-printable-hex-chars "]"))
 
 
+;;; @ utility
+;;;
+
+(defsubst mime-type/subtype-string (type &optional subtype)
+  "Return type/subtype string from TYPE and SUBTYPE."
+  (if type
+      (if subtype
+         (format "%s/%s" type subtype)
+       (format "%s" type))))
+
+
 ;;; @ end
 ;;;