summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Xin <jedy.wang@sun.com>2007-08-24 07:53:15 +0000
committerJedy Jedy Wang <jedywang@src.gnome.org>2007-08-24 07:53:15 +0000
commita20d8bd32ffb222c6079c0072982bd030f05c132 (patch)
treedd4c3561d9d444e804e37730f1bce8c5722afe5b
parent335692bf29d886855b535b42ba75137859978966 (diff)
downloadevolution-data-server-a20d8bd32ffb222c6079c0072982bd030f05c132.tar.gz
** Fix for bug #365213
2007-08-24 Wang Xin <jedy.wang@sun.com> ** 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
-rw-r--r--camel/providers/imap/ChangeLog7
-rw-r--r--camel/providers/imap/camel-imap-folder.c4
2 files changed, 10 insertions, 1 deletions
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 <jedy.wang@sun.com>
+
+ ** 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 <sragavan@novell.com>
** 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;
}