diff options
author | bertrand <bertrand@helixcode.com> | 2000-03-21 22:50:12 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-03-21 22:50:12 +0800 |
commit | 171c2a9ec5c4534907318c84a5e9f4fa6813fe01 (patch) | |
tree | 5ca2ecd20c07e77fe39688ced8d718137358132d /camel | |
parent | 24c2b8d45b439d7c9ec12ebed713523d770753ad (diff) | |
download | gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar.gz gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar.bz2 gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar.lz gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar.xz gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.tar.zst gsoc2013-evolution-171c2a9ec5c4534907318c84a5e9f4fa6813fe01.zip |
name change and new fields.
2000-03-21 bertrand <bertrand@helixcode.com>
* camel-folder-summary.h: name change and
new fields.
* providers/mbox/camel-mbox-search.c: update to
conform to name change in the summary fields.
svn path=/trunk/; revision=2131
Diffstat (limited to 'camel')
-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); |