From: Art Cancro Date: Wed, 21 Jul 2010 16:49:24 +0000 (+0000) Subject: * Fix a bug that caused a logging problem but did not affect protocol behavior X-Git-Tag: v8.01~1020 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e8bb4b22d7bfa3732e8df5d30a924966b858897d * Fix a bug that caused a logging problem but did not affect protocol behavior --- 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);