* lib: don't be too picky considering what's an attachment
This commit is contained in:
@ -881,12 +881,11 @@ mu_msg_part_maybe_attachment (MuMsgPart *part)
|
||||
if (!(part->part_type & MU_MSG_PART_TYPE_LEAF))
|
||||
return FALSE;
|
||||
|
||||
/* non-textual parts are considered attachments as
|
||||
* well */
|
||||
/* if (!(part->part_type & MU_MSG_PART_TYPE_ATTACHMENT) && */
|
||||
/* !(part->part_type & MU_MSG_PART_TYPE_TEXT_PLAIN) && */
|
||||
/* !(part->part_type & MU_MSG_PART_TYPE_TEXT_HTML)) */
|
||||
/* return TRUE; */
|
||||
/* parts other than text/plain, text/html are considered
|
||||
* attachments as well */
|
||||
if (!(part->part_type & MU_MSG_PART_TYPE_TEXT_PLAIN) &&
|
||||
!(part->part_type & MU_MSG_PART_TYPE_TEXT_HTML))
|
||||
return TRUE;
|
||||
|
||||
return part->part_type & MU_MSG_PART_TYPE_ATTACHMENT ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
@ -162,8 +162,6 @@ save_part_with_filename (MuMsg *msg, const char *pattern, MuConfig *opts)
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct _SaveData {
|
||||
gboolean result;
|
||||
guint saved_num;
|
||||
|
||||
Reference in New Issue
Block a user