]> code.citadel.org Git - citadel.git/blobdiff - citadel/msgbase.c
* Fix missing protocol header when outputing messages in "body only" mode
[citadel.git] / citadel / msgbase.c
index aaf901b3c12113346ffc3e816ed9e40bcf8eff07..6d6f8313e8eb4671acd69f67246335b06f69a722 100644 (file)
@@ -1144,12 +1144,12 @@ int CtdlOutputPreLoadedMsg(struct CtdlMessage *TheMessage,
                return((CC->download_fp != NULL) ? om_ok : om_mime_error);
        }
 
-       /* Does the caller want to skip the headers? */
-       if (headers_only == HEADERS_NONE) goto START_TEXT;
-
        /* now for the user-mode message reading loops */
        if (do_proto) cprintf("%d Message %ld:\n", LISTING_FOLLOWS, msg_num);
 
+       /* Does the caller want to skip the headers? */
+       if (headers_only == HEADERS_NONE) goto START_TEXT;
+
        /* Tell the client which format type we're using. */
        if ( (mode == MT_CITADEL) && (do_proto) ) {
                cprintf("type=%d\n", TheMessage->cm_format_type);