* updates for summary field removal

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-14 18:07:07 +03:00
parent 81f43467eb
commit 0cd1e78239
4 changed files with 14 additions and 10 deletions

View File

@ -54,10 +54,12 @@ view_msg (MuMsg *msg, const gchar *fields, size_t summary_len)
if ((date = mu_msg_get_date (msg)))
g_print ("Date: %s\n", mu_str_date_s ("%c", date));
if (summary_len > 0) {
field = mu_msg_get_summary (msg, summary_len);
g_print ("Summary: %s\n", field ? field : "<none>");
} else if ((field = mu_msg_get_body_text (msg)))
/* TODO: reimplement the summary stuff... */
/* if (summary_len > 0) { */
/* field = mu_msg_get_summary (msg, summary_len); */
/* g_print ("Summary: %s\n", field ? field : "<none>"); */
/* } else */
if ((field = mu_msg_get_body_text (msg)))
g_print ("\n%s\n", field);
return TRUE;

View File

@ -169,7 +169,7 @@ static void
print_summary (MuMsgIter *iter, size_t summary_len)
{
GError *err;
const char *summ;
/* const char *summ; */
MuMsg *msg;
if (summary_len == 0)
@ -183,8 +183,9 @@ print_summary (MuMsgIter *iter, size_t summary_len)
return;
}
summ = mu_msg_get_summary (msg, summary_len);
g_print ("Summary: %s\n", summ ? summ : "<none>");
/* TODO: summary again */
/* summ = mu_msg_get_summary (msg, summary_len); */
/* g_print ("Summary: %s\n", summ ? summ : "<none>"); */
mu_msg_unref (msg);
}

View File

@ -400,7 +400,7 @@ test_mu_view_01 (void)
* Added 350 as 'okay', which comes with gmime 2.4.24 (ubuntu 10.04)
*/
len = strlen(output);
/* g_print ("\n[%s] (%d)\n", output, len); */
g_print ("\n[%s] (%d)\n", output, len);
g_assert (len == 370 || len == 358 || len == 350 || len == 349);
g_free (output);

View File

@ -228,8 +228,9 @@ test_mu_query_05 (void)
g_assert_cmpstr (mu_msg_get_subject(msg),==,
"Greetings from Lothlórien");
g_assert_cmpstr (mu_msg_get_summary(msg,5),==,
"Let's write some fünkÿ text using umlauts. Foo.");
/* TODO: fix this again */
/* g_assert_cmpstr (mu_msg_get_summary(msg,5),==, */
/* "Let's write some fünkÿ text using umlauts. Foo."); */
mu_msg_unref (msg);
mu_msg_iter_destroy (iter);