diff options
Diffstat (limited to 'rfc2045/rfc2045decodemsgtoutf8.c')
| -rw-r--r-- | rfc2045/rfc2045decodemsgtoutf8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rfc2045/rfc2045decodemsgtoutf8.c b/rfc2045/rfc2045decodemsgtoutf8.c index bca243a..fb58c3e 100644 --- a/rfc2045/rfc2045decodemsgtoutf8.c +++ b/rfc2045/rfc2045decodemsgtoutf8.c @@ -1,5 +1,5 @@ /* -** Copyright 2010-2011 Double Precision, Inc. See COPYING for +** Copyright 2010-2014 Double Precision, Inc. See COPYING for ** distribution information. */ @@ -161,7 +161,8 @@ int rfc2045_decodemsgtoutf8(struct rfc2045src *src, rfc2045_mimeinfo(p, &content_type, &transfer_encoding, &charset); - if (strncmp(content_type, "text/", 5) == 0 && + if ((strncmp(content_type, "text/", 5) == 0 || + strncmp(content_type, "message/", 8) == 0) && (callback->flags & RFC2045_DECODEMSG_NOBODY) == 0 && (rc=rfc2045_decodetextmimesection(src, p, "utf-8", NULL, decode_handler, |
