commit 33282d05ca0f3162229f1c2ca00a488791d1d7bf
parent 5b70872b46999db1d46718267a4960547147d46b
Author: Ricardo Mones <ricardo@mones.org>
Date: Wed, 17 Aug 2016 09:57:39 +0200
Fix regression: show simple text/calendar with plugin
Handling the base case where the MIME part being looked up
is directly passed as function parameter was missing.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/messageview.c b/src/messageview.c
@@ -1300,7 +1300,10 @@ static void messageview_find_part_depth_first(MimeInfoSearch *context, MimeMedia
debug_print("found part %d/%s\n", mimeinfo->type, mimeinfo->subtype);
- if (mimeinfo->type == MIMETYPE_MULTIPART) {
+ if (mimeinfo->type == type
+ && !strcasecmp(mimeinfo->subtype, subtype)) {
+ context->found = mimeinfo;
+ } else if (mimeinfo->type == MIMETYPE_MULTIPART) {
if (!strcasecmp(mimeinfo->subtype, "alternative")
|| !strcasecmp(mimeinfo->subtype, "related")) {
context->found = procmime_mimeinfo_next(mimeinfo);