X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-formatter.c;h=79fa4a2a4c0b3aec5ad8162605cdddda0a815307;hp=8eb4c752fe45e55d079e5ad21365eae74f09acf2;hb=beae686e790fa6f231fbfeee19795330f0443a3a;hpb=5b68f7c4a513a7a6f45549e7bf40838ce754db27 diff --git a/src/modest-formatter.c b/src/modest-formatter.c index 8eb4c75..79fa4a2 100644 --- a/src/modest-formatter.c +++ b/src/modest-formatter.c @@ -177,6 +177,7 @@ modest_formatter_attach (ModestFormatter *self, TnyMsg *msg, TnyHeader *header) TnyMsg *new_msg = NULL; TnyMimePart *body_part = NULL; ModestFormatterPrivate *priv; + gchar *txt; /* Build new part */ new_msg = modest_formatter_create_message (self, TRUE, TRUE, FALSE); @@ -184,7 +185,10 @@ modest_formatter_attach (ModestFormatter *self, TnyMsg *msg, TnyHeader *header) /* Create the two parts */ priv = MODEST_FORMATTER_GET_PRIVATE (self); - construct_from_text (body_part, "", priv->content_type); + txt = modest_text_utils_cite ("", priv->content_type, priv->signature, + NULL, tny_header_get_date_sent (header)); + construct_from_text (body_part, txt, priv->content_type); + g_free (txt); g_object_unref (body_part); if (msg) { @@ -216,6 +220,7 @@ modest_formatter_instance_init (GTypeInstance *instance, gpointer g_class) ModestFormatterPrivate *priv = MODEST_FORMATTER_GET_PRIVATE (self); priv->content_type = NULL; + priv->signature = NULL; } static void @@ -341,9 +346,8 @@ modest_formatter_wrapper_quote (ModestFormatter *self, const gchar *text, TnyHea if ((filename == NULL)||(filename[0] == '\0')) filename = g_strdup (""); } - filenames = g_list_append (filenames, filename); + filenames = g_list_prepend (filenames, filename); } - filenames = g_list_reverse (filenames); /* TODO: get 80 from the configuration */ from = tny_header_dup_from (header);