projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b362d1
)
Autoretrieve calendar parts in bodystructure
author
José Dapena Paz
<jdapena@igalia.com>
Thu, 17 Dec 2009 15:22:10 +0000
(16:22 +0100)
committer
José Dapena Paz
<jdapena@igalia.com>
Mon, 18 Jan 2010 15:49:56 +0000
(16:49 +0100)
src/modest-tny-account-store.c
patch
|
blob
|
history
diff --git
a/src/modest-tny-account-store.c
b/src/modest-tny-account-store.c
index
529d027
..
3b82d2f
100644
(file)
--- 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)
{
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);
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);
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);
}
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);
+ }
}
}