* render_MAIL_html() now passes a message number instead of a MIME part number as...
authorArt Cancro <ajc@citadel.org>
Sun, 25 Jan 2009 05:49:34 +0000 (05:49 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 25 Jan 2009 05:49:34 +0000 (05:49 +0000)
webcit/html2html.c
webcit/msg_renderers.c

index a91239d0a1a2fce03f64bae5b304cadd791b7277..8e665f42dff31258abb43ad4b575924c134f484a 100644 (file)
@@ -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;
 
index c12ee46091e1f4ec9778905ecd8c1cfed9c9bcbb..8ad271b78e609d5a10272f56e1da88ebc38fe3ea 100644 (file)
@@ -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;