From: Art Cancro Date: Sun, 25 Jan 2009 05:49:34 +0000 (+0000) Subject: * render_MAIL_html() now passes a message number instead of a MIME part number as... X-Git-Tag: v7.86~1573 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=09d54aed185b63303ba5b1585f34f2a1a9688bc8 * render_MAIL_html() now passes a message number instead of a MIME part number as the third argument to output_html(), which is what that function requires. --- diff --git a/webcit/html2html.c b/webcit/html2html.c index a91239d0a..8e665f42d 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -108,6 +108,7 @@ void output_html(const char *supplied_charset, int treat_as_wiki, int msgnum, St size_t obuflen; /**< Length of output buffer */ char *osav; /**< Saved pointer to output buffer */ #endif + lprintf(9, "output_html() called with msgnum=%ld\n", msgnum); if (Target == NULL) Target = WC->WBuf; diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index c12ee4609..8ad271b78 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -885,7 +885,7 @@ void render_MAIL_html(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCh /* 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), + Mime->msgnum, Mime->Data, Buf); FreeStrBuf(&Mime->Data); Mime->Data = Buf;