]> code.citadel.org Git - citadel.git/blobdiff - webcit/msg_renderers.c
* Updated render_MIME_ICS() to do the right thing if the calendar attachment happens...
[citadel.git] / webcit / msg_renderers.c
index 450e66889137ce3376a363ced50d7aaf30efbea1..c8f367627aaaeb326a8a739a5551c1d1ea9e3194 100644 (file)
@@ -475,9 +475,12 @@ void render_MIME_VCard(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundC
        }
 
 }
+
 void render_MIME_ICS(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset)
 {
-       MimeLoadData(Mime);
+       if (StrLength(Mime->Data) == 0) {
+               MimeLoadData(Mime);
+       }
        if (StrLength(Mime->Data) > 0) {
                cal_process_attachment(Mime);
        }
@@ -855,12 +858,13 @@ void render_MAIL_text_plain(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *F
 void render_MAIL_html(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset)
 {
        StrBuf *Buf;
-       /* HTML is fun, but we've got to strip it first */
+
        if (StrLength(Mime->Data) == 0)
                return;
 
        Buf = NewStrBufPlain(NULL, StrLength(Mime->Data));
 
+       /* HTML is fun, but we've got to strip it first */
        output_html(ChrPtr(Mime->Charset), 
                    (WC->wc_view == VIEW_WIKI ? 1 : 0), 
                    StrToi(Mime->PartNum),