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-utils.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-utils.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-utils.c b/camel/providers/mbox/camel-mbox-utils.c index 6e4fc42faa..5d901b4d7c 100644 --- a/camel/providers/mbox/camel-mbox-utils.c +++ b/camel/providers/mbox/camel-mbox-utils.c @@ -170,7 +170,7 @@ copy_file_chunk (gint fd_src, glong nb_to_read; glong nb_read, v; - + printf ("Write %ld bytes\n", nb_bytes); nb_to_read = nb_bytes; while (nb_to_read > 0) { @@ -209,10 +209,11 @@ copy_file_chunk (gint fd_src, } -glong +guint32 camel_mbox_write_xev (gchar *mbox_file_name, GArray *summary_information, - glong next_uid, + guint32 *file_size, + guint32 next_uid, CamelException *ex) { gint cur_msg; @@ -250,7 +251,7 @@ camel_mbox_write_xev (gchar *mbox_file_name, cur_msg_info = (CamelMboxParserMessageInfo *)(summary_information->data) + cur_msg; end_of_last_message = cur_msg_info->message_position + cur_msg_info->size; - + printf ("End of last message : %ld\n", end_of_last_message); if (cur_msg_info->uid == 0) { bytes_to_copy = cur_msg_info->message_position @@ -277,6 +278,7 @@ camel_mbox_write_xev (gchar *mbox_file_name, cur_msg_info->x_evolution_offset = cur_msg_info->end_of_headers_offset; cur_msg_info->x_evolution = g_strdup_printf ("%.6s", xev_header + 12); cur_msg_info->end_of_headers_offset += 19; + *file_size += 19; } cur_msg_info->message_position += cur_offset; } |