");
comp = camel_folder_get_message_user_tag(emf->folder, emf->uid, "completed-on");
iconpath = e_icon_factory_get_icon_filename (comp && comp[0] ? "stock_flag-for-followup-done" : "stock_flag-for-followup", E_ICON_SIZE_MENU);
if (iconpath) {
CamelMimePart *iconpart;
iconpart = em_format_html_file_part((EMFormatHTML *)emf, "image/png", iconpath);
g_free (iconpath);
if (iconpart) {
char *classid;
classid = g_strdup_printf("icon:///em-format-html-display/%s/%s", emf->part_id->str, comp&&comp[0]?"comp":"uncomp");
camel_stream_printf(stream, " | ", classid);
(void)em_format_add_puri(emf, sizeof(EMFormatPURI), classid, iconpart, efhd_write_image);
g_free(classid);
camel_object_unref(iconpart);
}
}
camel_stream_printf(stream, "");
if (comp && comp[0]) {
date = camel_header_decode_date(comp, NULL);
localtime_r(&date, &due_tm);
e_utf8_strftime_fix_am_pm(due_date, sizeof (due_date), _("Completed on %B %d, %Y, %l:%M %p"), &due_tm);
camel_stream_printf(stream, "%s, %s", flag, due_date);
} else if ((due = camel_folder_get_message_user_tag(emf->folder, emf->uid, "due-by")) != NULL && due[0]) {
time_t now;
date = camel_header_decode_date(due, NULL);
now = time(NULL);
if (now > date)
camel_stream_printf(stream, "%s ", _("Overdue:"));
localtime_r(&date, &due_tm);
e_utf8_strftime_fix_am_pm(due_date, sizeof (due_date), _("by %B %d, %Y, %l:%M %p"), &due_tm);
camel_stream_printf(stream, "%s %s", flag, due_date);
} else {
camel_stream_printf(stream, "%s", flag);
}
camel_stream_printf(stream, " |