* mu-cmd-extract: don't be too picky for attachments
This commit is contained in:
@ -85,7 +85,8 @@ save_part_if (MuMsgPart *part, SaveData *sd)
|
|||||||
* the attachment check may be a bit too strict */
|
* the attachment check may be a bit too strict */
|
||||||
if (sd->attachments_only)
|
if (sd->attachments_only)
|
||||||
if (!part->disposition ||
|
if (!part->disposition ||
|
||||||
g_ascii_strcasecmp (part->disposition, "attachment") != 0)
|
((g_ascii_strcasecmp (part->disposition, "attachment") != 0) &&
|
||||||
|
g_ascii_strcasecmp (part->disposition, "inline")))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* ignore multiparts */
|
/* ignore multiparts */
|
||||||
@ -118,7 +119,7 @@ save_certain_parts (MuMsg *msg, gboolean attachments_only, const gchar *targetdi
|
|||||||
mu_msg_msg_part_foreach (msg,
|
mu_msg_msg_part_foreach (msg,
|
||||||
(MuMsgPartForeachFunc)save_part_if,
|
(MuMsgPartForeachFunc)save_part_if,
|
||||||
&sd);
|
&sd);
|
||||||
|
|
||||||
if (sd.saved_num == 0) {
|
if (sd.saved_num == 0) {
|
||||||
g_warning ("no %s extracted from this message",
|
g_warning ("no %s extracted from this message",
|
||||||
attachments_only ? "attachments" : "parts");
|
attachments_only ? "attachments" : "parts");
|
||||||
|
|||||||
Reference in New Issue
Block a user