]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/imap/imap_fetch.c
* indentation fix
[citadel.git] / citadel / modules / imap / imap_fetch.c
index 11303ef0dc5ea2051f9821d4c153c0163690f20b..45946b2f0d6e86899deda79a51dd00041fefc7fc 100644 (file)
@@ -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);
@@ -707,7 +705,8 @@ void imap_fetch_body(long msgnum, ConstStr item, int is_peek) {
                mime_parser(msg->cm_fields['M'], NULL,
                                *imap_load_part, NULL, NULL,
                                section,
-                               1);
+                               1
+               );
        }
 
        if (loading_body_now) {