diff options
author | bertrand <bertrand@helixcode.com> | 2000-01-22 06:46:46 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-01-22 06:46:46 +0800 |
commit | 8fbfb0ae4829f216501380e2f63ed6b4cc1a3306 (patch) | |
tree | 0ee71ccfdd7094c5914ffbdcafc01aa9bde13a47 /camel/providers/mbox/camel-mbox-summary.c | |
parent | 9764088cda82b0f7d79d1d1d7170f4311c8e9465 (diff) | |
download | gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.gz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.bz2 gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.lz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.xz gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.tar.zst gsoc2013-evolution-8fbfb0ae4829f216501380e2f63ed6b4cc1a3306.zip |
added camel-mbox-provider.c to the mbox provider sources.
2000-01-21 bertrand <bertrand@helixcode.com>
* camel/providers/mbox/Makefile.am (libcamelmbox_la_SOURCES):
added camel-mbox-provider.c to the mbox provider
sources.
* camel/providers/mbox/camel-mbox-provider.c:
provider registration code.
* camel/providers/mbox/camel-mbox-folder.c (_get_message_count): implemented
(_append_message): implemented
* camel/providers/mbox/camel-mbox-parser.c (initialize_buffer):
use \0 to mark the end of the buffer.
(read_next_buffer_chunk): ditto.
(read_header): test the presence of a \0 instead of
reading the eof field
(read_message_begining): idem.
(camel_mbox_parse_file): idem.
Remove the eof field from the parser
structure.
(read_next_buffer_chunk): removed some nasty bugs
again.
svn path=/trunk/; revision=1604
Diffstat (limited to 'camel/providers/mbox/camel-mbox-summary.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index c8ba96fe2f..685d375fa7 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -66,8 +66,8 @@ camel_mbox_save_summary (CamelMboxSummary *summary, const gchar *filename, Camel //md5_get_digest_from_file (filename, summary->md5_digest); /* write the number of messages + the md5 signatures - + next UID */ - write (fd, summary, sizeof (guint) + sizeof (guchar) * 16 + sizeof (guint32)); + + next UID + mbox file size */ + write (fd, summary, sizeof (guint) + sizeof (guchar) * 16 + 2 * sizeof (guint32)); for (cur_msg=0; cur_msg < summary->nb_message; cur_msg++) { @@ -142,8 +142,8 @@ camel_mbox_load_summary (const gchar *filename, CamelException *ex) summary = g_new0 (CamelMboxSummary, 1); /* read the message number, the md5 signature - and the next available UID */ - read (fd, summary, sizeof (guint) + sizeof (guchar) * 16 + sizeof (guint32)); + and the next available UID + mbox file size */ + read (fd, summary, sizeof (guint) + sizeof (guchar) * 16 + 2 * sizeof (guint32)); summary->message_info = g_array_new (FALSE, FALSE, sizeof (CamelMboxSummaryInformation)); summary->message_info = g_array_set_size (summary->message_info, summary->nb_message); |