Wireshark-dev: [Wireshark-dev] PATCH Mime types for text
From: Mike Duigou <wireshark@xxxxxxxxxx>
Date: Fri, 11 Aug 2006 12:01:19 -0700
The enclosed patch updates the set of mime types for line oriented text data per RFC 2046.

Mike
Index: epan/dissectors/packet-text-media.c
===================================================================
--- epan/dissectors/packet-text-media.c	(revision 18881)
+++ epan/dissectors/packet-text-media.c	(working copy)
@@ -137,7 +137,10 @@
 	text_lines_handle = create_dissector_handle(
 					dissect_text_lines, proto_text_lines);
 
-	dissector_add_string("media_type", "text/plain", text_lines_handle);
+	dissector_add_string("media_type", "text/plain", text_lines_handle); /* RFC 2046 */
+	dissector_add_string("media_type", "text/richtext", text_lines_handle);  /* RFC 1341 */
+	dissector_add_string("media_type", "text/enriched", text_lines_handle);  /* RFC 1896 */
+	dissector_add_string("media_type", "application/PostScript", text_lines_handle); /* RFC 2046 */
 	/* W3C line-based textual media */
 	dissector_add_string("media_type", "text/html", text_lines_handle);
 	dissector_add_string("media_type", "text/xml-external-parsed-entity", text_lines_handle);