aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index f78d38eb35..44161f7868 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -1536,9 +1536,12 @@ content_info_get_part_spec (CamelMessageContentInfo *ci)
child = child->next;
}
- len += (part / 10) + 2;
part_spec_push (&stack, part);
+ len++;
+ while ((part = part / 10))
+ len++;
+
node = node->parent;
}