summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2011-05-14 18:07:07 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2011-05-14 18:07:07 +0300
commit0cd1e78239ba34540a613ad77458ee4503d730a3 (patch)
treeda0ee72032d78e03134db1f659aae7eafb46e662 /src
parent81f43467eb705e1f39d3e33618e91e689a5ebfc9 (diff)
* updates for summary field removal
Diffstat (limited to 'src')
-rw-r--r--src/mu-cmd.c10
-rw-r--r--src/mu-output.c7
-rw-r--r--src/tests/test-mu-cmd.c2
-rw-r--r--src/tests/test-mu-query.c5
4 files changed, 14 insertions, 10 deletions
diff --git a/src/mu-cmd.c b/src/mu-cmd.c
index 4eb03f6..ce68693 100644
--- a/src/mu-cmd.c
+++ b/src/mu-cmd.c
@@ -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;
diff --git a/src/mu-output.c b/src/mu-output.c
index 0db8f54..daa2419 100644
--- a/src/mu-output.c
+++ b/src/mu-output.c
@@ -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);
}
diff --git a/src/tests/test-mu-cmd.c b/src/tests/test-mu-cmd.c
index bbad45e..fcf08d9 100644
--- a/src/tests/test-mu-cmd.c
+++ b/src/tests/test-mu-cmd.c
@@ -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);
diff --git a/src/tests/test-mu-query.c b/src/tests/test-mu-query.c
index 75e4682..f0e5939 100644
--- a/src/tests/test-mu-query.c
+++ b/src/tests/test-mu-query.c
@@ -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);