From 722899621625bafb134152534a3af08a0c9ef837 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 26 Nov 2001 21:30:55 +0000 Subject: For the uudecoding mode, garble up the "begin " line 2001-11-26 Jeffrey Stedfast * camel-mime-filter-basic.c: For the uudecoding mode, garble up the "begin " line before decoding. * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Add a uudecoder if the transfer encoding is x-uuencode. * camel-mime-part.c (write_to_stream): Handle x-uuencoded content too. svn path=/trunk/; revision=14789 --- camel/camel-mime-part-utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-mime-part-utils.c') diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 3bad8de1b6..131667e696 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -97,7 +97,8 @@ check_html_charset(char *buffer, int length) return charset; } -static GByteArray *convert_buffer(GByteArray *in, const char *to, const char *from) +static GByteArray * +convert_buffer (GByteArray *in, const char *to, const char *from) { iconv_t ic; int inlen, outlen, i=2; @@ -189,9 +190,12 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser } else if (!strcasecmp(encoding, "quoted-printable")) { d(printf("Adding quoted-printable decoder ...\n")); enctype = CAMEL_MIME_FILTER_BASIC_QP_DEC; + } else if (!strcasecmp (encoding, "x-uuencode")) { + d(printf("Adding uudecoder ...\n")); + enctype = CAMEL_MIME_FILTER_BASIC_UU_DEC; } g_free (encoding); - + if (enctype != 0) { fdec = (CamelMimeFilter *)camel_mime_filter_basic_new_type(enctype); decid = camel_mime_parser_filter_add (mp, fdec); -- cgit