+ set_common_flags (recipient_cell, flags);
+
+ if (header_mode == MODEST_HEADER_VIEW_COMPACT_HEADER_MODE_OUTBOX) {
+ ModestTnySendQueueStatus status = MODEST_TNY_SEND_QUEUE_WAITING;
+ const gchar *status_str = "";
+ if (msg_header != NULL) {
+ status = get_status_of_uid (tny_header_get_message_id (msg_header));
+ }
+ status_str = get_status_string (status);
+ /* TODO: for now we set the status to waiting always, we need a way to
+ * retrieve the current send status of a message */
+ status_str = get_status_string (MODEST_TNY_SEND_QUEUE_WAITING);
+ display_date = g_strdup_printf("<small>%s</small>", status_str);
+ g_object_set (G_OBJECT (date_or_status_cell),
+ "markup", display_date,
+ "foreground", "#666666",
+ NULL);
+ g_free (display_date);
+ } else {
+ /* in some rare cases, mail might have no Date: field. it case,
+ * don't show the date, instead of bogus 1/1/1970
+ */
+ if (date)
+ tmp_date = modest_text_utils_get_display_date (date);
+ else
+ tmp_date = g_strdup ("");
+
+ display_date = g_strdup_printf ("<small>%s</small>", tmp_date);
+ g_object_set (G_OBJECT (date_or_status_cell),
+ "markup", display_date,
+ "foreground", "#666666",
+ NULL);
+ g_free (tmp_date);
+ g_free (display_date);
+ }
+ set_common_flags (date_or_status_cell, flags);