* mu4e: unbreak attachments in forwarded messages

This commit is contained in:
djcb
2012-09-25 15:20:26 +03:00
parent ee78475bd8
commit 506f26a342
2 changed files with 9 additions and 10 deletions

View File

@ -418,12 +418,11 @@ each_part (MuMsg *msg, MuMsgPart *part, GSList **attlist)
/* exclude things that don't look like proper attachments,
* unless they're images */
if (!mu_msg_part_maybe_attachment(part) ||
g_strcmp0 (part->type, "image") != 0)
if (!mu_msg_part_maybe_attachment(part))
return;
err = NULL;
cachefile = mu_msg_part_save_temp (msg, MU_MSG_OPTION_NONE,
cachefile = mu_msg_part_save_temp (msg, MU_MSG_OPTION_OVERWRITE,
part->index, &err);
if (!cachefile) {
print_and_clear_g_error (&err);