* update attachment extraction code:

- only consider 'leaf', 'message' parts in for_each
   - special handling for gmimemessage
   - some cleanups
This commit is contained in:
djcb
2012-02-13 22:35:22 +02:00
parent 7f44863566
commit 3bb93a401b
5 changed files with 231 additions and 83 deletions

View File

@ -79,7 +79,8 @@ get_attach_str (MuMsg *msg)
gchar *attach;
attach = NULL;
mu_msg_part_foreach (msg, (MuMsgPartForeachFunc)each_part, &attach);
mu_msg_part_foreach (msg, FALSE,
(MuMsgPartForeachFunc)each_part, &attach);
return attach;
}