[evolution-data-server] Bug 700814 - [IMAPx] Do not convert LF into CRLF on message APPEND



commit 2599f2737d295ee21bbedf0e9036df45c3db5369
Author: Milan Crha <mcrha redhat com>
Date:   Mon Apr 20 19:37:53 2015 +0200

    Bug 700814 - [IMAPx] Do not convert LF into CRLF on message APPEND

 camel/providers/imapx/camel-imapx-server.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 278e995..c3ba60f 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -8634,12 +8634,10 @@ camel_imapx_server_append_message (CamelIMAPXServer *is,
                                    GError **error)
 {
        gchar *uid = NULL, *path = NULL;
-       CamelMimeFilter *filter;
        CamelIMAPXJob *job;
        CamelMessageInfo *info;
        GIOStream *base_stream;
        GOutputStream *output_stream;
-       GOutputStream *filter_stream;
        AppendMessageData *data;
        gint res;
        time_t date_time;
@@ -8675,19 +8673,12 @@ camel_imapx_server_append_message (CamelIMAPXServer *is,
        }
 
        output_stream = g_io_stream_get_output_stream (base_stream);
-       filter = camel_mime_filter_canon_new (CAMEL_MIME_FILTER_CANON_CRLF);
-       filter_stream = camel_filter_output_stream_new (output_stream, filter);
-
-       g_filter_output_stream_set_close_base_stream (
-               G_FILTER_OUTPUT_STREAM (filter_stream), FALSE);
 
        res = camel_data_wrapper_write_to_output_stream_sync (
                CAMEL_DATA_WRAPPER (message),
-               filter_stream, cancellable, error);
+               output_stream, cancellable, error);
 
        g_object_unref (base_stream);
-       g_object_unref (filter_stream);
-       g_object_unref (filter);
 
        if (res == -1) {
                g_prefix_error (error, _("Cannot create spool file: "));


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