]> code.citadel.org Git - citadel.git/blobdiff - citadel/imap_fetch.c
* I dunno
[citadel.git] / citadel / imap_fetch.c
index f381951790e50bdd74a012f4ba0917a6610aef8a..6f07f64ffcec71bf455da58f2c2236268a2c569c 100644 (file)
@@ -380,7 +380,7 @@ void imap_fetch_body(long msgnum, char *item, int is_peek,
                if (partial[i]=='>') partial[i] = 0;
        }
        if (is_partial == 0) strcpy(partial, "");
-       lprintf(9, "Partial is %s\n", partial);
+       if (strlen(partial) > 0) lprintf(9, "Partial is %s\n", partial);
 
        tmp = tmpfile();
        if (tmp == NULL) {
@@ -582,13 +582,13 @@ void imap_fetch_bodystructure (long msgnum, char *item,
 
                cprintf("BODYSTRUCTURE (\"TEXT\" \"PLAIN\" "
                        "(\"CHARSET\" \"US-ASCII\") NIL NIL "
-                       "\"7BIT\" %ld %ld) ", bytes, lines);
+                       "\"7BIT\" %ld %ld)", bytes, lines);
 
                return;
        }
 
        /* For messages already stored in RFC822 format, we have to parse. */
-       cprintf("BODYSTRUCTURE (");
+       cprintf("BODYSTRUCTURE ");
        mime_parser(msg->cm_fields['M'],
                        NULL,
                        *imap_fetch_bodystructure_part, /* part */
@@ -596,7 +596,6 @@ void imap_fetch_bodystructure (long msgnum, char *item,
                        *imap_fetch_bodystructure_post, /* post-multi */
                        NULL,
                        0);
-       cprintf(") ");
 }