char buf[SIZ];
off_t bytes;
/* TODO: is there a chance the contenttype is different to the one we know? */
- lprintf(9, "< DLAT %ld|%s\n", Mime->msgnum, ChrPtr(Mime->PartNum)); // FIXME temporary, remove
serv_printf("DLAT %ld|%s", Mime->msgnum, ChrPtr(Mime->PartNum));
serv_getln(buf, sizeof buf);
- lprintf(9, "> %s\n", buf); // FIXME temporary, remove
if (buf[0] == '6') {
bytes = extract_long(&buf[4], 0);
}
}
+
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);
}
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),