]> code.citadel.org Git - citadel.git/commitdiff
When a MIME part's content-disposition is missing or empty,
authorArt Cancro <ajc@citadel.org>
Sat, 24 Mar 2007 17:51:42 +0000 (17:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 24 Mar 2007 17:51:42 +0000 (17:51 +0000)
treat it as 'attachment'

citadel/messages.c

index b793f335a6525954c1e65535a214849fd2f003eb..07fd6be5fda25b186bdd85316859be0c43d2d458 100644 (file)
@@ -705,7 +705,9 @@ int read_message(CtdlIPC *ipc,
 
                for (ptr = message->attachments; ptr; ptr = ptr->next) {
                        if ( (!strcasecmp(ptr->disposition, "attachment"))
-                          || (!strcasecmp(ptr->disposition, "inline"))) {
+                          || (!strcasecmp(ptr->disposition, "inline"))
+                          || (!strcasecmp(ptr->disposition, ""))
+                       ) {
                                color(DIM_WHITE);
                                pprintf("Part ");
                                color(BRIGHT_MAGENTA);