From 610a4c1ec7e50050a144a6ce13c22ebfc94ce865 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 21 Jul 2010 16:49:24 +0000 Subject: [PATCH] * Fix a bug that caused a logging problem but did not affect protocol behavior --- citadel/modules/imap/imap_fetch.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/citadel/modules/imap/imap_fetch.c b/citadel/modules/imap/imap_fetch.c index 11303ef0d..db1fc2dd7 100644 --- a/citadel/modules/imap/imap_fetch.c +++ b/citadel/modules/imap/imap_fetch.c @@ -653,11 +653,9 @@ void imap_fetch_body(long msgnum, ConstStr item, int is_peek) { StrBufStripAllBut(partial, '<', '>'); is_partial = 1; } - if (is_partial == 0) - if (StrLength(partial) > 0) - CtdlLogPrintf(CTDL_DEBUG, - "Partial is %s\n", - ChrPtr(partial)); + if ( (is_partial == 1) && (StrLength(partial) > 0) ) { + CtdlLogPrintf(CTDL_DEBUG, "Partial is <%s>\n", ChrPtr(partial)); + } if (IMAP->cached_body == NULL) { CCC->redirect_buffer = NewStrBufPlain(NULL, SIZ); -- 2.30.2