From ef6a3af717132e0750f226fa8a0ee0f3c98e19f0 Mon Sep 17 00:00:00 2001 From: Michael Zucci Date: Mon, 20 Sep 2004 05:59:55 +0000 Subject: Merged notzed-eplugin-2-branch to head. svn path=/trunk/; revision=27300 --- mail/em-format-quote.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'mail/em-format-quote.c') diff --git a/mail/em-format-quote.c b/mail/em-format-quote.c index 59f75181f9..88dcfdc7c8 100644 --- a/mail/em-format-quote.c +++ b/mail/em-format-quote.c @@ -35,6 +35,7 @@ #include #include +#include #include "em-stripsig-filter.h" #include "em-format-quote.h" @@ -493,10 +494,11 @@ emfq_text_html(EMFormat *emf, CamelStream *stream, CamelMimePart *part, EMFormat em_format_format_text(emf, stream, camel_medium_get_content_object((CamelMedium *)part)); } -static const char *type_remove_table[] = { - "message/external-body", - "multipart/appledouble", -}; +static void +emfq_ignore(EMFormat *emf, CamelStream *stream, CamelMimePart *part, EMFormatHandler *info) +{ + /* NOOP */ +} static EMFormatHandler type_builtin_table[] = { { "text/plain",(EMFormatFunc)emfq_text_plain }, @@ -504,6 +506,8 @@ static EMFormatHandler type_builtin_table[] = { { "text/richtext",(EMFormatFunc)emfq_text_enriched }, { "text/html",(EMFormatFunc)emfq_text_html }, /* { "multipart/related",(EMFormatFunc)emfq_multipart_related },*/ + { "message/external-body", (EMFormatFunc)emfq_ignore }, + { "multipart/appledouble", (EMFormatFunc)emfq_ignore }, }; static void @@ -511,9 +515,6 @@ emfq_builtin_init(EMFormatQuoteClass *efhc) { int i; - for (i = 0; i < sizeof(type_remove_table) / sizeof(type_remove_table[0]); i++) - em_format_class_remove_handler((EMFormatClass *) efhc, type_remove_table[i]); - for (i=0;i