* add test mail
This commit is contained in:
@ -297,27 +297,28 @@ save_parts (const char *path, const char *filename, MuConfig *opts)
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define color_maybe(C,COND) ((COND)?(C):"")
|
||||
|
||||
static void
|
||||
each_part_show (MuMsg *msg, MuMsgPart *part, gboolean color)
|
||||
{
|
||||
g_print (" %u %s%s%s %s%s/%s%s [%s%s%s]\n",
|
||||
g_print (" %u %s%s %s%s/%s%s [%s%s%s]\n",
|
||||
part->index,
|
||||
|
||||
/* filename */
|
||||
color && part->file_name ? MU_COLOR_GREEN : "",
|
||||
color_maybe (MU_COLOR_GREEN, color),
|
||||
part->file_name ? part->file_name : "<none>",
|
||||
color ? MU_COLOR_DEFAULT : "",
|
||||
|
||||
/* content type */
|
||||
color ? MU_COLOR_BLUE : "",
|
||||
color_maybe (MU_COLOR_BLUE, color),
|
||||
part->type ? part->type : "",
|
||||
part->subtype ? part->subtype : "",
|
||||
color ? MU_COLOR_DEFAULT : "",
|
||||
|
||||
color_maybe (MU_COLOR_DEFAULT, color),
|
||||
|
||||
/* disposition */
|
||||
color && part->disposition ? MU_COLOR_MAGENTA : "",
|
||||
color_maybe (MU_COLOR_MAGENTA, color),
|
||||
part->disposition ? part->disposition : "<none>",
|
||||
color ? MU_COLOR_DEFAULT : ""
|
||||
color_maybe (MU_COLOR_DEFAULT, color)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user