diff options
author | bertrand <bertrand@helixcode.com> | 2000-01-20 11:02:13 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-01-20 11:02:13 +0800 |
commit | de8e7223eac6c40b10d2a095210d2120aa97fa55 (patch) | |
tree | 1799dfad05eefa22a2f945492048499e897d10db /camel/providers/mbox/camel-mbox-summary.h | |
parent | 5b0a9fa89ef44fb96f12bffca3a3f1169d4b272d (diff) | |
download | gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.gz gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.bz2 gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.lz gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.xz gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.zst gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.zip |
implemented.
2000-01-19 bertrand <bertrand@helixcode.com>
* camel/providers/mbox/camel-mbox-folder.c (_get_message_count):
implemented.
* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(camel_mbox_load_summary): save/load the next uid.
* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
Compute the next available uid.
* camel/providers/mbox/camel-mbox-folder.c (_create):
(_check_get_or_maybe_generate_summary_file):
Set and use the next_uid field properly.
* camel/providers/mbox/camel-mbox-summary.h: added
an extra field to store the next available uid.
* camel/providers/mbox/camel-mbox-folder.c
(_check_get_or_maybe_generate_summary_file):
routine called when the folder is opened.
Reads or creates the summary file.
(_create): initialize the internal summary
structure.
(_close): save the summary file on closing.
(_init_with_store): initialize mbox specific
folder members.
svn path=/trunk/; revision=1597
Diffstat (limited to 'camel/providers/mbox/camel-mbox-summary.h')
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.h b/camel/providers/mbox/camel-mbox-summary.h index 95d9574395..2d08e36164 100644 --- a/camel/providers/mbox/camel-mbox-summary.h +++ b/camel/providers/mbox/camel-mbox-summary.h @@ -26,7 +26,6 @@ #define MBOX_SUMMARY_H 1 #include <glib.h> -#include "camel-mbox-folder.h" @@ -47,7 +46,8 @@ typedef struct { typedef struct { guint nb_message; /* number of messages in the summary */ - guchar md5_digest[16]; /* md5 signature of the mbox file */ + guchar md5_digest[16]; /* md5 signature of the mbox file */ + guint32 next_uid; GArray *message_info; /* array of CamelMboxSummaryInformation */ @@ -60,6 +60,11 @@ camel_mbox_save_summary (CamelMboxSummary *summary, const gchar *filename, Camel CamelMboxSummary * camel_mbox_load_summary (const gchar *filename, CamelException *ex); +gboolean +camel_mbox_check_summary_sync (gchar *summary_filename, + gchar *mbox_filename, + CamelException *ex); + #endif /* MH_SUMMARY_H */ |