X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmsg_renderers.c;h=3f774992cbc7e460b9c1136e71bd03d1d411b01d;hb=ab56ffdeaf94733bbfaf3b2d2852592852580ab3;hp=f33cd782b18e24c35c96456eccb85940e6993af0;hpb=b14ad70b1de7363ca00ebebb63ad11ace29cfe8a;p=citadel.git diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index f33cd782b..3f774992c 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -462,8 +462,10 @@ void tmplput_MAIL_SUMM_DATE_NO(StrBuf *Target, WCTemplputParams *TP) void render_MAIL(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset) { + const StrBuf *TemplateMime; + Mime->Data = NewStrBufPlain(NULL, Mime->length); - read_message(Mime->Data, HKEY("view_submessage"), Mime->msgnum, Mime->PartNum); + read_message(Mime->Data, HKEY("view_submessage"), Mime->msgnum, Mime->PartNum, &TemplateMime); /* if ( (!IsEmptyStr(mime_submessages)) && (!section[0]) ) { for (i=0; i