* update for attachment checking changes

This commit is contained in:
djcb 2012-08-09 11:45:46 +03:00
parent 51fe7fcae8
commit b3760740f8
6 changed files with 6 additions and 7 deletions

View File

@ -308,7 +308,7 @@ each_part (MuMsg *msg, MuMsgPart *part, AttInfo *attinfo)
if (!part->type)
return;
if (attinfo->attachments_only &&
!mu_msg_part_looks_like_attachment (part, TRUE))
!mu_msg_part_maybe_attachment (part))
return;
mime_type = g_strdup_printf ("%s/%s", part->type, part->subtype);

View File

@ -333,7 +333,7 @@ each_part (MuMsg *msg, MuMsgPart *part, PartInfo *pinfo)
elvis (part->subtype, "octet-stream"),
tmpfile ? " :temp" : "", tmpfile ? tmpfile : "",
parttype,
mu_msg_part_looks_like_attachment (part, TRUE) ? "t" : "nil",
mu_msg_part_maybe_attachment (part) ? "t" : "nil",
(int)part->size,
sig_verdict (part->sig_infos));

View File

@ -185,7 +185,7 @@ ignore_part (MuMsg *msg, MuMsgPart *part, SaveData *sd)
/* filter out non-attachments? */
if (!sd->opts->save_all &&
!(mu_msg_part_looks_like_attachment (part, TRUE)))
!(mu_msg_part_maybe_attachment (part)))
return TRUE;
return FALSE;

View File

@ -417,7 +417,7 @@ each_part (MuMsg *msg, MuMsgPart *part, GSList **attlist)
GError *err;
/* exclude things that don't look like proper attachments */
if (!mu_msg_part_looks_like_attachment(part, FALSE))
if (!mu_msg_part_maybe_attachment(part))
return;
err = NULL;

View File

@ -65,7 +65,7 @@ each_part (MuMsg *msg, MuMsgPart *part, gchar **attach)
{
char *fname, *tmp;
if (!mu_msg_part_looks_like_attachment (part, TRUE))
if (!mu_msg_part_maybe_attachment (part))
return;
fname = mu_msg_part_get_filename (part, FALSE);

View File

@ -208,7 +208,6 @@ mu_msg_attach_view_init (MuMsgAttachView *obj)
GDK_ACTION_COPY);
gtk_drag_source_add_uri_targets(GTK_WIDGET(obj));
g_signal_connect (obj, "drag-data-get", G_CALLBACK(on_drag_data_get), NULL);
}
@ -241,7 +240,7 @@ each_part (MuMsg *msg, MuMsgPart *part, CBData *cbdata)
GdkPixbuf *pixbuf;
char ctype[128];
if (!mu_msg_part_looks_like_attachment(part, FALSE))
if (!mu_msg_part_maybe_attachment(part))
return;
if (!part->type || !part->subtype)