]> code.citadel.org Git - citadel.git/commitdiff
Output a new header 'X-Citadel-MSG4-Partnum:' with the
authorArt Cancro <ajc@citadel.org>
Sun, 25 Mar 2007 04:51:19 +0000 (04:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 25 Mar 2007 04:51:19 +0000 (04:51 +0000)
MSG4 output in order to give clients a way to avoid displaying a
download link (or whatever) for the main body of the message that has
already been displayed.

citadel/msgbase.c

index 4c9fa08e8f595eae9e41892314ac5f5e00718552..6dcef952e55518aa7b8d4e9250ecb8b7cd4241ed 100644 (file)
@@ -1297,7 +1297,6 @@ void output_preferred(char *name, char *filename, char *partnum, char *disp,
                        if (text_content[length-1] != '\n') {
                                ++add_newline;
                        }
-
                        cprintf("Content-type: %s", cbtype);
                        if (strlen(cbcharset) > 0) {
                                cprintf("; charset=%s", cbcharset);
@@ -1310,6 +1309,7 @@ void output_preferred(char *name, char *filename, char *partnum, char *disp,
                        else {
                                cprintf("Content-transfer-encoding: 7bit\n");
                        }
+                       cprintf("X-Citadel-MSG4-Partnum: %s\n", partnum);
                        cprintf("\n");
                        client_write(content, length);
                        if (add_newline) cprintf("\n");