From a20d8bd32ffb222c6079c0072982bd030f05c132 Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Fri, 24 Aug 2007 07:53:15 +0000 Subject: ** Fix for bug #365213 2007-08-24 Wang Xin ** Fix for bug #365213 * camel-imap-folder.c: If a part's parent is message/* but its grandparent is not, skip that part. svn path=/trunk/; revision=7989 --- camel/providers/imap/ChangeLog | 7 +++++++ camel/providers/imap/camel-imap-folder.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/camel/providers/imap/ChangeLog b/camel/providers/imap/ChangeLog index 50dcf67d4..862095ac9 100644 --- a/camel/providers/imap/ChangeLog +++ b/camel/providers/imap/ChangeLog @@ -1,3 +1,10 @@ +2007-08-24 Wang Xin + + ** Fix for bug #365213 + + * camel-imap-folder.c: If a part's parent is message/* but its + grandparent is not, skip that part. + 2007-08-13 Srinivasa Ragavan ** Fix for bug #420462 diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index f4a627815..83ff09a22 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1758,7 +1758,9 @@ content_info_get_part_spec (CamelMessageContentInfo *ci) CamelMessageContentInfo *child; /* FIXME: is this only supposed to apply if 'node' is a multipart? */ - if (node->parent->parent && camel_content_type_is (node->parent->type, "message", "*")) { + if (node->parent->parent && + camel_content_type_is (node->parent->type, "message", "*") && + !camel_content_type_is (node->parent->parent->type, "message", "*")) { node = node->parent; continue; } -- cgit v1.2.1