aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox/camel-mbox-utils.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-23 03:52:46 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-23 03:52:46 +0800
commit15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6 (patch)
treefc7dcbc1a1281e12cea15c78c6200403d763c825 /camel/providers/mbox/camel-mbox-utils.c
parent101996359f684e0282f1261f92f54d5b10e1ddb3 (diff)
downloadgsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar.gz
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar.bz2
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar.lz
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar.xz
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.tar.zst
gsoc2013-evolution-15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6.zip
implemented. A lot of fixes too. Works now.
2000-01-22 bertrand <bertrand@helixcode.com> * camel/providers/mbox/camel-mbox-folder.c (_append_message): implemented. A lot of fixes too. Works now. svn path=/trunk/; revision=1608
Diffstat (limited to 'camel/providers/mbox/camel-mbox-utils.c')
-rw-r--r--camel/providers/mbox/camel-mbox-utils.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/camel/providers/mbox/camel-mbox-utils.c b/camel/providers/mbox/camel-mbox-utils.c
index 5d901b4d7c..b8b11495ea 100644
--- a/camel/providers/mbox/camel-mbox-utils.c
+++ b/camel/providers/mbox/camel-mbox-utils.c
@@ -32,7 +32,7 @@
* ...
*
*
- * The evolution line ha10s the following format :
+ * The evolution line has the following format :
*
* X-Evolution:XXXXX-X
* \___/ \/
@@ -160,17 +160,16 @@ camel_mbox_xev_write_header_content (gchar header_content[6],
-static void
-copy_file_chunk (gint fd_src,
- gint fd_dest,
- glong nb_bytes,
- CamelException *ex)
+void
+camel_mbox_copy_file_chunk (gint fd_src,
+ gint fd_dest,
+ glong nb_bytes,
+ CamelException *ex)
{
gchar buffer [1000];
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) {
@@ -261,7 +260,7 @@ camel_mbox_write_xev (gchar *mbox_file_name,
cur_pos = cur_msg_info->message_position
+ cur_msg_info->end_of_headers_offset;
- copy_file_chunk (fd1, fd2, bytes_to_copy, ex);
+ camel_mbox_copy_file_chunk (fd1, fd2, bytes_to_copy, ex);
if (camel_exception_get_id (ex)) {
close (fd1);
close (fd2);
@@ -285,7 +284,7 @@ camel_mbox_write_xev (gchar *mbox_file_name,
bytes_to_copy = end_of_last_message - cur_pos;
- copy_file_chunk (fd1, fd2, bytes_to_copy, ex);
+ camel_mbox_copy_file_chunk (fd1, fd2, bytes_to_copy, ex);
/* close the original file as well as the