* src/modest-text-utils.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 14 Jun 2007 15:14:07 +0000 (15:14 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 14 Jun 2007 15:14:07 +0000 (15:14 +0000)
        * (modest_text_utils_cite): cite shouldn't include
          replied message body, only signature (fixes NB#58185).

pmo-trunk-r2238

src/modest-text-utils.c

index cb1a16e..874c0f9 100644 (file)
@@ -149,7 +149,7 @@ modest_text_utils_cite (const gchar *text,
                        const gchar *from,
                        time_t sent_date)
 {
-       gchar *tmp, *retval;
+       gchar *retval;
        gchar *tmp_sig;
 
        g_return_val_if_fail (text, NULL);
@@ -163,10 +163,8 @@ modest_text_utils_cite (const gchar *text,
                tmp_sig = g_strdup (signature);
        }
 
-       tmp = cite (sent_date, from);
-       retval = g_strdup_printf ("%s%s%s\n", tmp_sig, tmp, text);
+       retval = g_strdup_printf ("\n%s\n", tmp_sig);
        g_free (tmp_sig);
-       g_free (tmp);
 
        return retval;
 }