From c677222a161edabc100369676808360a727bab57 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 21 Jan 2003 16:38:53 +0000 Subject: Set the backbuflen to 0 so that calling us again won't re-flush the same 2003-01-21 Jeffrey Stedfast * camel-mime-filter-canon.c (complete): Set the backbuflen to 0 so that calling us again won't re-flush the same data. svn path=/trunk/; revision=19538 --- camel/ChangeLog | 5 +++++ camel/camel-mime-filter-canon.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 60b210370f..35c386387d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2003-01-21 Jeffrey Stedfast + + * camel-mime-filter-canon.c (complete): Set the backbuflen to 0 so + that calling us again won't re-flush the same data. + 2003-01-17 Larry Ewing * camel-mime-filter-enriched.c (enriched_to_html): only grow the diff --git a/camel/camel-mime-filter-canon.c b/camel/camel-mime-filter-canon.c index 412fe89262..a72f01c77f 100644 --- a/camel/camel-mime-filter-canon.c +++ b/camel/camel-mime-filter-canon.c @@ -205,11 +205,13 @@ complete(CamelMimeFilter *f, char *in, size_t len, size_t prespace, char **out, o--; } } - + /* and always finish with an eol */ *o++ = '\n'; - + *outlen = o - *out; + + f->backlen = 0; } } -- cgit v1.2.3