X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmsg_renderers.c;h=eeccd46ee121460e56d9f5d48bdcb65bfe241736;hb=c3cd364e864859835ebfe6e0aeda2bb07160063f;hp=97b454abdbdf3cfa4f1ee2c4361f3ca6503c2eff;hpb=b5c07a5a5a0c10230caf9794e62afb693b5d56b5;p=citadel.git diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 97b454abd..eeccd46ee 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -816,7 +816,6 @@ void render_MAIL_variformat(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *F void render_MAIL_text_plain(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset) { - StrBuf *cs = NULL; const char *ptr, *pte; const char *BufPtr = NULL; StrBuf *Line; @@ -824,12 +823,13 @@ void render_MAIL_text_plain(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *F StrBuf *Line2; StrBuf *Target; - int ConvertIt = 1; int bn = 0; int bq = 0; int i; long len; #ifdef HAVE_ICONV + StrBuf *cs = NULL; + int ConvertIt = 1; iconv_t ic = (iconv_t)(-1) ; #endif @@ -899,11 +899,11 @@ void render_MAIL_text_plain(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *F StrBufAppendBufPlain(Target, HKEY("
"), 0); for (i = bq; i < bn; i++) StrBufAppendBufPlain(Target, HKEY("
"), 0); - +#ifdef HAVE_ICONV if (ConvertIt) { StrBufConvert(Line, Line1, &ic); } - +#endif StrBufAppendBufPlain(Target, HKEY(""), 0); UrlizeText(Line1, Line, Line2);