From cd542787312eaf5c45341a05f6aa83f2748b44c4 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 10 Dec 2010 19:13:28 +0100 Subject: [PATCH] Performance improvement / Bugfix Mime handling while outputting messages: - we switched to decode just that part we'd want to output, we should choose the pointer with the decoded buffer. --- citadel/msgbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 41b8171b9..9c8ab8602 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -1460,7 +1460,7 @@ void output_preferred(char *name, extract_token(buf, CC->preferred_formats, i, '|', sizeof buf); if (!strcasecmp(buf, cbtype)) { /* Yeah! Go! W00t!! */ - if (ma->dont_decode == 0) + if (ma->dont_decode == 0) rc = mime_decode_now (content, length, encoding, @@ -1492,7 +1492,7 @@ void output_preferred(char *name, } cprintf("X-Citadel-MSG4-Partnum: %s\n", partnum); cprintf("\n"); - client_write(content, length); + client_write(text_content, length); if (add_newline) cprintf("\n"); if (decoded != NULL) free(decoded); return; -- 2.30.2