* src/modest-text-utils.c:
authorAlberto Garcia <agarcia@igalia.com>
Fri, 15 Feb 2008 12:33:31 +0000 (12:33 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Fri, 15 Feb 2008 12:33:31 +0000 (12:33 +0000)
(modest_text_utils_quote_plain_text):
Place signature before the original message
Fixes NB#80646

pmo-trunk-r4183

src/modest-text-utils.c

index f2ca840..94d822e 100644 (file)
@@ -834,10 +834,15 @@ modest_text_utils_quote_plain_text (const gchar *text,
        gsize len;
        gchar *attachments_string = NULL;
 
-       /* remaining will store the rest of the line if we have to break it */
        q = g_string_new ("\n");
+       if (signature != NULL) {
+               q = g_string_append (q, signature);
+               q = g_string_append_c (q, '\n');
+       }
        q = g_string_append (q, cite);
        q = g_string_append_c (q, '\n');
+
+       /* remaining will store the rest of the line if we have to break it */
        remaining = g_string_new ("");
 
        iter = text;
@@ -884,11 +889,6 @@ modest_text_utils_quote_plain_text (const gchar *text,
        q = g_string_append (q, attachments_string);
        g_free (attachments_string);
 
-       if (signature != NULL) {
-               q = g_string_append_c (q, '\n');
-               q = g_string_append (q, signature);
-       }
-
        return g_string_free (q, FALSE);
 }