diff options
author | bertrand <bertrand@helixcode.com> | 2000-01-19 03:29:48 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-01-19 03:29:48 +0800 |
commit | 5e4695e7178c12d47fb5f758e203256cabbc3823 (patch) | |
tree | 30e5e311d14e651981aa5d9d178bb7c1e64676c1 /camel/camel-folder-summary.c | |
parent | 64046a6665df493b03a057c7e66f4d84c4b4ba21 (diff) | |
download | gsoc2013-evolution-5e4695e7178c12d47fb5f758e203256cabbc3823.tar.gz gsoc2013-evolution-5e4695e7178c12d47fb5f758e203256cabbc3823.tar.zst gsoc2013-evolution-5e4695e7178c12d47fb5f758e203256cabbc3823.zip |
summary file read/write routines.
2000-01-18 bertrand <bertrand@helixcode.com>
* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(mbox_load_summary): summary file read/write routines.
* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
routine to construct the summary after the mbox
file has been parsed and the x-evolution fields
inserted.
* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
dont use the x_evolution field but rather the uid to
determine the presence of "X-Evolution" in the mail.
* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse the status and uid values if the x-evolution
has been found.
* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_xev_parse_header_content):
return the parsed status field correctly.
* camel/providers/mbox/camel-mbox-utils.h:
fixed bad prototype.
* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse and store the "To:" header.
* camel/providers/mbox/camel-mbox-parser.h:
added a "to" field
* camel/camel-folder-summary.c:
create the arrays here.
* camel/camel-folder-summary.h: the list of
summary information is no longer a GList but
rather a GArray.
Parsing/summary/sync-check is here. Needs testing
and integration with the rest of the folder code.
svn path=/trunk/; revision=1589
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 2c6b45b718..4d1745e3b2 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -34,8 +34,8 @@ static GtkObjectClass *parent_class=NULL; #define CFS_CLASS(so) CAMEL_FOLDER_SUMMARY_CLASS (GTK_OBJECT(so)->klass) -static const GList *_get_subfolder_info_list (CamelFolderSummary *summary); -static const GList *_get_message_info_list (CamelFolderSummary *summary); +static const GArray *_get_subfolder_info_list (CamelFolderSummary *summary); +static const GArray *_get_message_info_list (CamelFolderSummary *summary); static void _finalize (GtkObject *object); @@ -65,8 +65,8 @@ camel_folder_summary_init (gpointer object, gpointer klass) CamelFolderSummary *summary = CAMEL_FOLDER_SUMMARY (object); CAMEL_LOG_FULL_DEBUG ( "camel_folder_summary_init:: Entering\n"); - summary->subfolder_info_list = NULL; - summary->message_info_list = NULL; + summary->subfolder_info_list = g_array_new (FALSE, FALSE, sizeof (CamelFolderInfo); + summary->message_info_list = g_array_new (FALSE, FALSE, sizeof (CamelMessageInfo); CAMEL_LOG_FULL_DEBUG ( "camel_folder_summary_init:: Leaving\n"); } @@ -116,14 +116,14 @@ camel_folder_summary_new () return gtk_type_new (CAMEL_FOLDER_SUMMARY_TYPE); } -static const GList * +static const GArray * _get_subfolder_info_list (CamelFolderSummary *summary) { return summary->subfolder_info_list; } -const GList * +const GArray * camel_folder_summary_get_subfolder_info_list (CamelFolderSummary *summary) { return CFS_CLASS (summary)->get_subfolder_info_list (summary); @@ -132,13 +132,13 @@ camel_folder_summary_get_subfolder_info_list (CamelFolderSummary *summary) -static const GList * +static const GArray * _get_message_info_list (CamelFolderSummary *summary) { return summary->message_info_list; } -const GList * +const GArray * camel_folder_summary_get_message_info_list (CamelFolderSummary *summary) { return CFS_CLASS (summary)->get_message_info_list (summary); |