evolution r35261 - trunk/mail
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35261 - trunk/mail
- Date: Thu, 27 Mar 2008 11:04:19 +0000 (GMT)
Author: mcrha
Date: Thu Mar 27 11:04:18 2008
New Revision: 35261
URL: http://svn.gnome.org/viewvc/evolution?rev=35261&view=rev
Log:
2008-03-27 Milan Crha <mcrha redhat com>
** Fix for bug #488175
* message-list.c: (ml_tree_value_at):
Colorize follow-up messages same as with due-by flag.
Modified:
trunk/mail/ChangeLog
trunk/mail/message-list.c
Modified: trunk/mail/message-list.c
==============================================================================
--- trunk/mail/message-list.c (original)
+++ trunk/mail/message-list.c Thu Mar 27 11:04:18 2008
@@ -1411,7 +1411,7 @@
return GINT_TO_POINTER (!(flags & CAMEL_MESSAGE_SEEN));
}
case COL_COLOUR: {
- const char *colour, *due_by, *completed;
+ const char *colour, *due_by, *completed, *followup;
char *labels_string = NULL;
int n;
@@ -1425,6 +1425,7 @@
colour = camel_message_info_user_tag(msg_info, "colour");
due_by = camel_message_info_user_tag(msg_info, "due-by");
completed = camel_message_info_user_tag(msg_info, "completed-on");
+ followup = camel_message_info_user_tag(msg_info, "follow-up");
if (colour == NULL) {
if ((n = get_all_labels (msg_info, &labels_string, TRUE)) == 1) {
@@ -1432,12 +1433,10 @@
} else if (camel_message_info_flags(msg_info) & CAMEL_MESSAGE_FLAGGED) {
/* FIXME: extract from the important.xpm somehow. */
colour = "#A7453E";
- } else if ((due_by && *due_by) && !(completed && *completed)) {
+ } else if (((followup && *followup) || (due_by && *due_by)) && !(completed && *completed)) {
time_t now = time (NULL);
- time_t target_date;
- target_date = camel_header_decode_date (due_by, NULL);
- if (now >= target_date)
+ if ((followup && *followup) || now >= camel_header_decode_date (due_by, NULL))
colour = "#A7453E";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]