X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-account-store.c;h=3b82d2fb0f30ced0f6128bcad9518b46d6ff2996;hb=045600234d38463450bc44c87daf1b15e903af11;hp=529d0276c2dea55a9fd3a7c941404470837ed17b;hpb=41dad98b400f6d6db2cc6ecb456eb01050d71e9e;p=modest diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 529d027..3b82d2f 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -884,10 +884,11 @@ volume_path_is_mounted (const gchar* path) static void _bodies_filter (TnyMsg *msg, TnyList *list) { - TnyMimePart *html_part, *text_part; + TnyMimePart *html_part, *text_part, *calendar_part; html_part = modest_tny_msg_find_body_part (msg, TRUE); text_part = modest_tny_msg_find_body_part (msg, FALSE); + calendar_part = modest_tny_msg_find_calendar (msg); if (text_part && TNY_IS_MIME_PART (text_part) && html_part == text_part) { g_object_unref (text_part); @@ -903,6 +904,11 @@ static void _bodies_filter (TnyMsg *msg, TnyList *list) tny_list_prepend (list, G_OBJECT (text_part)); g_object_unref (text_part); } + + if (calendar_part && TNY_IS_MIME_PART (calendar_part)) { + tny_list_prepend (list, G_OBJECT (calendar_part)); + g_object_unref (calendar_part); + } }