+ /* Show the list of senders/recipients */
+ addresses = NULL;
+ recipient_list = modest_text_utils_split_addresses_list (recipients);
+ if (recipient_list) {
+ GString *add_string = g_string_sized_new (strlen (recipients));
+ GSList *iter = recipient_list;
+ gboolean first = TRUE;
+
+ while (iter) {
+ /* Strings are changed in place */
+ modest_text_utils_get_display_address ((gchar *) iter->data);
+ if (G_UNLIKELY (first)) {
+ g_string_append_printf (add_string, "%s", (gchar *) iter->data);
+ first = FALSE;
+ } else {
+ g_string_append_printf (add_string, ", %s", (gchar *) iter->data);
+ }
+ iter = g_slist_next (iter);
+ }
+ g_slist_foreach (recipient_list, (GFunc) g_free, NULL);
+ g_slist_free (recipient_list);
+ addresses = g_string_free (add_string, FALSE);
+ }
+
+ set_cell_text (recipient_cell, (addresses) ? addresses : _("mail_va_no_to"), flags);
+ g_free (addresses);
+ g_free (recipients);
+
+ /* Show status (outbox folder) or sent date */
+ if (header_mode == MODEST_HEADER_VIEW_COMPACT_HEADER_MODE_OUTBOX) {
+ ModestTnySendQueueStatus status = MODEST_TNY_SEND_QUEUE_UNKNOWN;
+ const gchar *status_str = "";
+ if (msg_header != NULL) {
+ status = modest_tny_all_send_queues_get_msg_status (msg_header);
+ if (status == MODEST_TNY_SEND_QUEUE_SUSPENDED) {
+ tny_header_set_flag (msg_header, TNY_HEADER_FLAG_SUSPENDED);
+ }
+ }
+
+ status_str = get_status_string (status);
+ set_cell_text (date_or_status_cell, status_str, flags);
+ } else {
+#if GTK_CHECK_VERSION (2, 12, 0)
+ ModestHeaderView *header_view;
+ header_view = MODEST_HEADER_VIEW (gtk_tree_view_column_get_tree_view (column));
+ set_cell_text (date_or_status_cell,
+ date ? _modest_header_view_get_display_date (header_view, date) : "",
+ flags);
+#else
+ set_cell_text (date_or_status_cell,
+ date ? modest_text_utils_get_display_date (date) : "",
+ flags);
+#endif
+ }
+ if (msg_header != NULL)
+ g_object_unref (msg_header);