aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-filter-basic.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-17 07:38:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-17 07:38:32 +0800
commitbd788027df6589ff8b52c87a913322ae9065c394 (patch)
treebfdd4b7614e366db24303868cf40072661e7fb55 /camel/camel-mime-filter-basic.c
parent87590252919a43ad6375d9b19243bd750137dbcb (diff)
downloadgsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar.gz
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar.bz2
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar.lz
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar.xz
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.tar.zst
gsoc2013-evolution-bd788027df6589ff8b52c87a913322ae9065c394.zip
If we don't want to corrupt the uuencoded data by overwriting it with
2002-01-16 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-basic.c (filter): If we don't want to corrupt the uuencoded data by overwriting it with base64 decoded data afterward, we need to add a break statement! * camel-folder-summary.c (summary_build_content_info): Add code to add a uu filter. (camel_folder_summary_finalize): Unref the uuencode filter. svn path=/trunk/; revision=15347
Diffstat (limited to 'camel/camel-mime-filter-basic.c')
-rw-r--r--camel/camel-mime-filter-basic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-mime-filter-basic.c b/camel/camel-mime-filter-basic.c
index 494f7ead7f..5e2b9f5107 100644
--- a/camel/camel-mime-filter-basic.c
+++ b/camel/camel-mime-filter-basic.c
@@ -54,6 +54,7 @@ camel_mime_filter_basic_init (CamelMimeFilterBasic *obj)
{
obj->state = 0;
obj->save = 0;
+ obj->uulen = 0;
}
@@ -82,6 +83,7 @@ reset(CamelMimeFilter *mf)
CamelMimeFilterBasic *f = (CamelMimeFilterBasic *)mf;
f->uu_begin = FALSE;
+ f->uulen = 0;
switch(f->type) {
case CAMEL_MIME_FILTER_BASIC_QP_ENC:
@@ -181,6 +183,7 @@ filter(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, s
camel_mime_filter_set_size (mf, (len + 2) * 2 + 62, FALSE);
newlen = uuencode_step (in, len, mf->outbuf, f->uubuf, &f->state, &f->save, &f->uulen);
g_assert (newlen <= (len + 2) * 2 + 62);
+ break;
case CAMEL_MIME_FILTER_BASIC_BASE64_DEC:
/* output can't possibly exceed the input size */
camel_mime_filter_set_size(mf, len+3, FALSE);