* lib: don't be too picky considering what's an attachment

This commit is contained in:
djcb
2012-09-27 17:31:49 +03:00
parent da51bf9f9c
commit ab431a4a69
2 changed files with 5 additions and 8 deletions

View File

@ -881,12 +881,11 @@ mu_msg_part_maybe_attachment (MuMsgPart *part)
if (!(part->part_type & MU_MSG_PART_TYPE_LEAF)) if (!(part->part_type & MU_MSG_PART_TYPE_LEAF))
return FALSE; return FALSE;
/* non-textual parts are considered attachments as /* parts other than text/plain, text/html are considered
* well */ * attachments as well */
/* if (!(part->part_type & MU_MSG_PART_TYPE_ATTACHMENT) && */ if (!(part->part_type & MU_MSG_PART_TYPE_TEXT_PLAIN) &&
/* !(part->part_type & MU_MSG_PART_TYPE_TEXT_PLAIN) && */ !(part->part_type & MU_MSG_PART_TYPE_TEXT_HTML))
/* !(part->part_type & MU_MSG_PART_TYPE_TEXT_HTML)) */ return TRUE;
/* return TRUE; */
return part->part_type & MU_MSG_PART_TYPE_ATTACHMENT ? TRUE : FALSE; return part->part_type & MU_MSG_PART_TYPE_ATTACHMENT ? TRUE : FALSE;
} }

View File

@ -162,8 +162,6 @@ save_part_with_filename (MuMsg *msg, const char *pattern, MuConfig *opts)
return rv; return rv;
} }
struct _SaveData { struct _SaveData {
gboolean result; gboolean result;
guint saved_num; guint saved_num;