aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox/camel-mbox-utils.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-03-25 13:18:55 +0800
committerDan Winship <danw@src.gnome.org>2000-03-25 13:18:55 +0800
commita74c859d8c64ac576255fbc36b5f59468b42ddce (patch)
tree3e71353e6c734cacedc11bc8a83ddf221812a77a /camel/providers/mbox/camel-mbox-utils.c
parent4af81200bb6f671aa581ef77d2c0b6e4c332fb81 (diff)
downloadgsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar.gz
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar.bz2
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar.lz
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar.xz
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.tar.zst
gsoc2013-evolution-a74c859d8c64ac576255fbc36b5f59468b42ddce.zip
change the CamelFolderSummary interfaces to allow partial summary queries
* camel-folder-summary.[ch]: change the CamelFolderSummary interfaces to allow partial summary queries (for dealing with very large folders). Remove the "extended_fields" from CamelFolderInfo and CamelMessageInfo: this is better dealt with by subtyping. * providers/mbox/camel-mbox-summary.[ch]: Make CamelMboxSummary a subclass of CamelFolderSummary. Update interfaces for that. Remove the internal/external summary distinction. Remove the (unused) md5 checksum in the folder summary. Change the summary file format (primarily to make it no longer byte-order dependent) and add a version number to it so it will be easier to change in the future. * providers/mbox/camel-mbox-folder.[ch] * providers/mbox/camel-mbox-search.c * providers/mbox/camel-mbox-utils.c: update for summary changes * camel-exception-list.def: add CAMEL_EXCEPTION_FOLDER_SUMMARY_INVALID svn path=/trunk/; revision=2159
Diffstat (limited to 'camel/providers/mbox/camel-mbox-utils.c')
-rw-r--r--camel/providers/mbox/camel-mbox-utils.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/camel/providers/mbox/camel-mbox-utils.c b/camel/providers/mbox/camel-mbox-utils.c
index aa2d19a079..1b16941148 100644
--- a/camel/providers/mbox/camel-mbox-utils.c
+++ b/camel/providers/mbox/camel-mbox-utils.c
@@ -57,7 +57,6 @@
#include <glib.h>
#include "camel-mbox-utils.h"
#include "camel-mbox-parser.h"
-#include "camel-folder-summary.h"
#include "camel-mbox-summary.h"
@@ -367,19 +366,23 @@ parsed_information_to_mbox_summary (GArray *parsed_information)
cur_sum_info->x_evolution_offset = cur_msg_info->x_evolution_offset;
cur_sum_info->uid = cur_msg_info->uid;
+ cur_sum_info->headers.uid = g_strdup_printf ("%d",
+ cur_sum_info->uid);
cur_sum_info->status = cur_msg_info->status;
- cur_sum_info->subject = cur_msg_info->subject;
+ cur_sum_info->headers.subject = cur_msg_info->subject;
cur_msg_info->subject = NULL;
- cur_sum_info->sender = cur_msg_info->from;
+ cur_sum_info->headers.sender = cur_msg_info->from;
cur_msg_info->from = NULL;
- cur_sum_info->to = cur_msg_info->to;
+ cur_sum_info->headers.to = cur_msg_info->to;
cur_msg_info->to = NULL;
- cur_sum_info->date = cur_msg_info->date;
+ /* XXX I'm guessing one of these is wrong. */
+ cur_sum_info->headers.received_date = cur_msg_info->date;
+ cur_sum_info->headers.sent_date = g_strdup (cur_msg_info->date);
cur_msg_info->date = NULL;
}