commit | 7858a309d7671109950ec940f893c2d112d36b99 | [log] [tgz] |
---|---|---|
author | Jonathan Bastien-Filiatrault <joe@x2a.org> | Fri Oct 26 18:13:41 2007 -0400 |
committer | Jonathan Bastien-Filiatrault <joe@x2a.org> | Mon Nov 05 18:13:31 2007 -0500 |
tree | 676723bafc103e232341aa05be4d57ed773b9feb | |
parent | af0819830445e39584a0137034562086a55deaf2 [diff] [blame] |
Convert subject and message with iconv_msg.
diff --git a/parsing.c b/parsing.c index f156c12..c731084 100644 --- a/parsing.c +++ b/parsing.c
@@ -320,6 +320,20 @@ } else ret->subject = substr(p, p+strlen(p)); + if(strcmp(ret->msg_encoding, PAGE_ENCODING)) { + t = iconv_msg(ret->subject, ret->msg_encoding); + if(t) { + free(ret->subject); + ret->subject = t; + } + + t = iconv_msg(ret->msg, ret->msg_encoding); + if(t) { + free(ret->msg); + ret->msg = t; + } + } + return ret; }