From e24b773c9d9557d16aa47ba222c27683b9c31384 Mon Sep 17 00:00:00 2001 From: ajc Date: Sun, 25 Jan 2009 05:49:34 +0000 Subject: [PATCH] * 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. git-svn-id: svn://uncensored.citadel.org/trunk@6988 c9418f8e-8c02-0410-9258-ad310909226a --- webcit/html2html.c | 1 + webcit/msg_renderers.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/webcit/html2html.c b/webcit/html2html.c index a91239d0..8e665f42 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 c12ee460..8ad271b7 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; -- 2.11.4.GIT