diff options
-rw-r--r-- | camel/camel-folder-summary.h | 12 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-search.c | 2 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.c | 2 |
3 files changed, 12 insertions, 4 deletions
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h index 13bf793f29..84facc41d5 100644 --- a/camel/camel-folder-summary.h +++ b/camel/camel-folder-summary.h @@ -59,12 +59,20 @@ typedef struct { typedef struct { + + /* all the followings are public fields */ gchar *subject; - gchar *uid; - gchar *date; + gchar *sender; + gchar *to; + + gchar *sent_date; + gchar *received_date; + + gchar *uid; GHashTable *extended_fields; + } CamelMessageInfo; diff --git a/camel/providers/mbox/camel-mbox-search.c b/camel/providers/mbox/camel-mbox-search.c index 515bd8842c..47d4012c4c 100644 --- a/camel/providers/mbox/camel-mbox-search.c +++ b/camel/providers/mbox/camel-mbox-search.c @@ -229,7 +229,7 @@ func_header_contains(struct _ESExp *f, int argc, struct _ESExpResult **argv, voi if (!strcasecmp(headername, "subject")) { header = ctx->message_current->subject; } else if (!strcasecmp(headername, "date")) { - header = ctx->message_current->date; + header = ctx->message_current->sent_date; } else if (!strcasecmp(headername, "from")) { header = ctx->message_current->sender; } else { diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index 51946f1789..1b4826058b 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -296,7 +296,7 @@ camel_mbox_summary_append_internal_to_external (CamelMboxSummary *internal, external_entry.subject = internal_entry->subject ? strdup (internal_entry->subject) : NULL; external_entry.uid = g_strdup_printf ("%u", internal_entry->uid); - external_entry.date = internal_entry->date ? strdup (internal_entry->date) : NULL; + external_entry.sent_date = internal_entry->date ? strdup (internal_entry->date) : NULL; external_entry.sender = internal_entry->sender ? strdup (internal_entry->sender) : NULL; g_array_append_vals (external_array, &external_entry, 1); |