X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-attachment.c;h=ed7313635a54d37767b300e58af86f3940a82b78;hb=688b5c743afca998e5e371a4de0ebb1acab5c5e1;hp=e35fdee32925f95ec25c053b1a990a95910c3aa3;hpb=702b748360f6de61e0780c36a98065d19a495c83;p=modest diff --git a/src/modest-tny-attachment.c b/src/modest-tny-attachment.c index e35fdee..ed73136 100644 --- a/src/modest-tny-attachment.c +++ b/src/modest-tny-attachment.c @@ -330,12 +330,16 @@ modest_tny_attachment_new_from_message(const TnyMsgIface *msg) GList * modest_tny_attachment_new_list_from_msg(const TnyMsgIface *msg, gboolean with_body) { - GList *list = NULL; + // FIXME: does not work anymore. needs the new TnyList stuff... + return NULL; +#if 0 + + TnyList *att_list const GList *attachments = NULL; TnyMsgMimePartIface *part; ModestTnyAttachment *att; -#if 0 + if (with_body) { /* TODO: make plain over html configurable */ part = modest_tny_msg_actions_find_body_part ((TnyMsgIface *)msg, "text/plain"); @@ -348,7 +352,7 @@ modest_tny_attachment_new_list_from_msg(const TnyMsgIface *msg, gboolean with_bo list = g_list_append(list, att); } } -#endif + if (with_body) { list = g_list_append(list, modest_tny_attachment_new_from_message(msg)); } else { @@ -363,4 +367,6 @@ modest_tny_attachment_new_list_from_msg(const TnyMsgIface *msg, gboolean with_bo attachments = attachments->next; } return list; + +#endif }