[evolution] EMsgComposer - Set the headers that are used when saving a message as draft just is that case



commit 08b2f8686dec035da45857ec0344647782783ccb
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Oct 23 13:29:59 2014 +0200

    EMsgComposer - Set the headers that are used when saving a message as draft just is that case

 composer/e-msg-composer.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 5e34594..d8973fa 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1218,14 +1218,6 @@ composer_build_message (EMsgComposer *composer,
                g_free (encoded_organization);
        }
 
-       /* X-Evolution-Format */
-       composer_add_evolution_format_header (
-               CAMEL_MEDIUM (context->message), flags);
-
-       /* X-Evolution-Composer-Mode */
-       composer_add_evolution_composer_mode_header (
-               CAMEL_MEDIUM (context->message), composer);
-
        if (flags & COMPOSER_FLAG_SAVE_DRAFT) {
                gchar *text;
                EHTMLEditor *editor;
@@ -1236,6 +1228,14 @@ composer_build_message (EMsgComposer *composer,
                view = e_html_editor_get_view (editor);
                selection = e_html_editor_view_get_selection (view);
 
+               /* X-Evolution-Format */
+               composer_add_evolution_format_header (
+                       CAMEL_MEDIUM (context->message), flags);
+
+               /* X-Evolution-Composer-Mode */
+               composer_add_evolution_composer_mode_header (
+                       CAMEL_MEDIUM (context->message), composer);
+
                data = g_byte_array_new ();
 
                e_html_editor_view_embed_styles (view);


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