summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Varshavchik2014-06-23 07:49:47 -0400
committerSam Varshavchik2014-06-23 07:49:47 -0400
commitcb36699e35c7f027f2d3a6efe5b05ecf8907b6bf (patch)
tree120be89f8d8c7eb4e1cc6e2fbeab22c9f68caa84
parentb7553f519246fce574b52aa52ad86a308de32ad5 (diff)
downloadcourier-libs-cb36699e35c7f027f2d3a6efe5b05ecf8907b6bf.tar.bz2
Recognize "message" MIME content type, in addition to "text".
-rw-r--r--rfc2045/rfc2045decodemsgtoutf8.c5
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,