1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-29 07:51:04 +02:00

* 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) if (!part->type)
return; return;
if (attinfo->attachments_only && if (attinfo->attachments_only &&
!mu_msg_part_looks_like_attachment (part, TRUE)) !mu_msg_part_maybe_attachment (part))
return; return;
mime_type = g_strdup_printf ("%s/%s", part->type, part->subtype); 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"), elvis (part->subtype, "octet-stream"),
tmpfile ? " :temp" : "", tmpfile ? tmpfile : "", tmpfile ? " :temp" : "", tmpfile ? tmpfile : "",
parttype, parttype,
mu_msg_part_looks_like_attachment (part, TRUE) ? "t" : "nil", mu_msg_part_maybe_attachment (part) ? "t" : "nil",
(int)part->size, (int)part->size,
sig_verdict (part->sig_infos)); sig_verdict (part->sig_infos));

View File

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

View File

@ -417,7 +417,7 @@ each_part (MuMsg *msg, MuMsgPart *part, GSList **attlist)
GError *err; GError *err;
/* exclude things that don't look like proper attachments */ /* 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; return;
err = NULL; err = NULL;

View File

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

View File

@ -208,7 +208,6 @@ mu_msg_attach_view_init (MuMsgAttachView *obj)
GDK_ACTION_COPY); GDK_ACTION_COPY);
gtk_drag_source_add_uri_targets(GTK_WIDGET(obj)); gtk_drag_source_add_uri_targets(GTK_WIDGET(obj));
g_signal_connect (obj, "drag-data-get", G_CALLBACK(on_drag_data_get), NULL); 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; GdkPixbuf *pixbuf;
char ctype[128]; char ctype[128];
if (!mu_msg_part_looks_like_attachment(part, FALSE)) if (!mu_msg_part_maybe_attachment(part))
return; return;
if (!part->type || !part->subtype) if (!part->type || !part->subtype)