+ 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);
+ display_date = g_strdup_printf("<span size='small' foreground='#666666'>%s</span>", status_str);
+ g_object_set (G_OBJECT (date_or_status_cell),
+ "markup", display_date,
+ NULL);
+ g_free (display_date);
+ display_date = NULL;
+ } else {
+ display_date = g_strdup_printf ("<span size='small' foreground='#666666'>%s</span>",
+ date ? modest_text_utils_get_display_date (date) : "");
+ g_object_set (G_OBJECT (date_or_status_cell),
+ "markup", display_date,
+ NULL);
+ g_free (tmp_date);
+ tmp_date = NULL;
+ g_free (display_date);
+ display_date = NULL;
+ }
+
+ if (msg_header != NULL)
+ g_object_unref (msg_header);
+
+ set_common_flags (date_or_status_cell, flags);