From cb36699e35c7f027f2d3a6efe5b05ecf8907b6bf Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 23 Jun 2014 07:49:47 -0400 Subject: Recognize "message" MIME content type, in addition to "text". --- rfc2045/rfc2045decodemsgtoutf8.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rfc2045') 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, -- cgit v1.2.3