* DLAT response was missing its MIME metadata. Fixed.
authorArt Cancro <ajc@citadel.org>
Thu, 2 Apr 2009 16:46:09 +0000 (16:46 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 2 Apr 2009 16:46:09 +0000 (16:46 +0000)
citadel/msgbase.c

index 60648431e3e2c8e100b439a11522bda71cafcd4a..d290e192f0239d034feb68ffa078533e8a27d0b8 100644 (file)
@@ -1019,7 +1019,12 @@ void mime_spew_section(char *name, char *filename, char *partnum, char *disp,
        ||      (!IsEmptyStr(cbid) && (!strcasecmp(CC->download_desired_section, cbid)))
        ) {
                *found_it = 1;
-               cprintf("%d %d\n", BINARY_FOLLOWS, (int)length);
+               cprintf("%d %d|-1|%s|%s\n",
+                       BINARY_FOLLOWS,
+                       (int)length,
+                       filename,
+                       cbtype
+               );
                client_write(content, length);
        }
 }