aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-27 05:30:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-27 05:30:55 +0800
commit722899621625bafb134152534a3af08a0c9ef837 (patch)
treec86d5d549a7a3c3a47632206557c35f90541a834 /camel/camel-mime-part-utils.c
parent6f9e5d77d970584de089538d1bd8913f03973048 (diff)
downloadgsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar.gz
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar.bz2
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar.lz
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar.xz
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.tar.zst
gsoc2013-evolution-722899621625bafb134152534a3af08a0c9ef837.zip
For the uudecoding mode, garble up the "begin <mode> <filename>" line
2001-11-26 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-basic.c: For the uudecoding mode, garble up the "begin <mode> <filename>" 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
Diffstat (limited to 'camel/camel-mime-part-utils.c')
-rw-r--r--camel/camel-mime-part-utils.c8
1 files changed, 6 insertions, 2 deletions
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);