[evolution-data-server] Bug #726723 - Data loss on a message copy to an IMAPx folder



commit c1997674a01051b20439eb3634ff71eec9e084f3
Author: Milan Crha <mcrha redhat com>
Date:   Fri Mar 21 14:03:34 2014 +0100

    Bug #726723 - Data loss on a message copy to an IMAPx folder

 camel/camel-data-wrapper.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 22dc978..d66b8c3 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -1078,6 +1078,11 @@ camel_data_wrapper_write_to_output_stream_sync (CamelDataWrapper *data_wrapper,
                data_wrapper, write_to_output_stream_sync,
                bytes_written >= 0, error);
 
+       if (bytes_written >= 0) {
+               if (!g_output_stream_flush (output_stream, cancellable, error))
+                       bytes_written = -1;
+       }
+
        return bytes_written;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]