* add tags output to 'mu view'
This commit is contained in:
10
src/mu-cmd.c
10
src/mu-cmd.c
@ -1,5 +1,4 @@
|
|||||||
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2010-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2010-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
@ -97,8 +96,10 @@ view_msg (MuMsg *msg, const gchar *fields, gboolean summary,
|
|||||||
const char *field;
|
const char *field;
|
||||||
gchar *attachs;
|
gchar *attachs;
|
||||||
time_t date;
|
time_t date;
|
||||||
|
const GSList *lst;
|
||||||
const int SUMMARY_LEN = 5;
|
const int SUMMARY_LEN = 5;
|
||||||
|
|
||||||
|
|
||||||
print_field ("From", mu_msg_get_from (msg), color);
|
print_field ("From", mu_msg_get_from (msg), color);
|
||||||
print_field ("To", mu_msg_get_to (msg), color);
|
print_field ("To", mu_msg_get_to (msg), color);
|
||||||
print_field ("Cc", mu_msg_get_cc (msg), color);
|
print_field ("Cc", mu_msg_get_cc (msg), color);
|
||||||
@ -109,6 +110,13 @@ view_msg (MuMsg *msg, const gchar *fields, gboolean summary,
|
|||||||
print_field ("Date", mu_str_date_s ("%c", date),
|
print_field ("Date", mu_str_date_s ("%c", date),
|
||||||
color);
|
color);
|
||||||
|
|
||||||
|
if ((lst = mu_msg_get_tags (msg))) {
|
||||||
|
gchar *tags;
|
||||||
|
tags = mu_str_from_list (lst,',');
|
||||||
|
print_field ("Tags", tags, color);
|
||||||
|
g_free (tags);
|
||||||
|
}
|
||||||
|
|
||||||
if ((attachs = get_attach_str (msg))) {
|
if ((attachs = get_attach_str (msg))) {
|
||||||
print_field ("Attachments", attachs, color);
|
print_field ("Attachments", attachs, color);
|
||||||
g_free (attachs);
|
g_free (attachs);
|
||||||
|
|||||||
Reference in New Issue
Block a user