* mu-cmd-extract: don't be too picky for attachments

This commit is contained in:
Dirk-Jan C. Binnema 2010-10-23 12:04:58 +03:00
parent 59dda1941a
commit f9b50541e3
1 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@ save_part_if (MuMsgPart *part, SaveData *sd)
* the attachment check may be a bit too strict */
if (sd->attachments_only)
if (!part->disposition ||
g_ascii_strcasecmp (part->disposition, "attachment") != 0)
((g_ascii_strcasecmp (part->disposition, "attachment") != 0) &&
g_ascii_strcasecmp (part->disposition, "inline")))
return;
/* ignore multiparts */
@ -118,7 +119,7 @@ save_certain_parts (MuMsg *msg, gboolean attachments_only, const gchar *targetdi
mu_msg_msg_part_foreach (msg,
(MuMsgPartForeachFunc)save_part_if,
&sd);
if (sd.saved_num == 0) {
g_warning ("no %s extracted from this message",
attachments_only ? "attachments" : "parts");