* next step in attachment handling infra; still WIP

This commit is contained in:
djcb
2010-08-22 19:31:21 +03:00
parent 37b0ea3bc3
commit 3cdb1f15ed
6 changed files with 136 additions and 77 deletions

View File

@ -24,6 +24,18 @@
#include "mu-cmd.h"
static void
each_part (MuMsgPartInfo* part, gpointer user_data)
{
g_print ("%u %s %s/%s [%s]\n",
part->index,
part->file_name ? part->file_name : "<none>",
part->type ? part->type : "",
part->subtype ? part->subtype : "",
part->disposition ? part->disposition : "<none>");
}
static gboolean
show_parts (const char* path)
{
@ -33,7 +45,9 @@ show_parts (const char* path)
if (!msg)
return FALSE;
mu_msg_gmime_mime_part_foreach (msg, NULL, NULL);
mu_msg_gmime_msg_part_infos_foreach (msg, each_part, NULL);
mu_msg_gmime_destroy (msg);
return TRUE;