* microshits RFC Violator will just show the tinnef part of a message you reply to...
authorWilfried Göesgens <willi@citadel.org>
Sun, 8 Nov 2009 11:24:03 +0000 (11:24 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 8 Nov 2009 11:24:03 +0000 (11:24 +0000)
webcit/msg_renderers.c

index 7fd334977b217dace7eba0d1856f906da29b7a3f..8d0010fb03e9b351e2c000f056a3da971674972b 100644 (file)
@@ -1066,8 +1066,9 @@ void tmplput_MIME_LoadData(StrBuf *Target, WCTemplputParams *TP)
        wc_mime_attachment *mime = (wc_mime_attachment*) CTX;
        wc_mime_attachment *att;
        
-       if ( (!strcasecmp(ChrPtr(mime->Disposition), "inline"))||
-            (!strcasecmp(ChrPtr(mime->Disposition), "attachment")) ) 
+       if (( (!strcasecmp(ChrPtr(mime->Disposition), "inline"))||
+             (!strcasecmp(ChrPtr(mime->Disposition), "attachment"))) && 
+           (strcasecmp(ChrPtr(mime->ContentType), "application/ms-tnef")!=0))
        {
                
                int n;