aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-06-09 19:09:01 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-06-09 19:09:01 +0800
commit22dc0c949c909394889c9b56d63240ad271eb3f8 (patch)
treec66112101dc8756973eba70b241218e4ca590c47 /mail/em-utils.c
parentf1cfc8c031380ebd6f4c5fcd681ba1cc4e77f967 (diff)
downloadgsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar.gz
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar.bz2
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar.lz
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar.xz
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.tar.zst
gsoc2013-evolution-22dc0c949c909394889c9b56d63240ad271eb3f8.zip
** Fix for bug #535791
2008-06-09 Milan Crha <mcrha@redhat.com> ** Fix for bug #535791 * mail-config.glade: * em-composer-prefs.c: (em_composer_prefs_construct): New UI option to let uset choose whether start typing at the bottom of the document or not on replying. * em-utils.h: (em_utils_message_to_html): * em-utils.c: (em_utils_message_to_html): * em-composer-utils.c: (forward_non_attached), (composer_set_body): Take care of /apps/evolution/mail/composer/reply_start_bottom. svn path=/trunk/; revision=35621
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 799ff9c339..50b56aa453 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1645,6 +1645,7 @@ em_utils_part_to_html(CamelMimePart *part, ssize_t *len, EMFormat *source)
* @flags: EMFormatQuote flags
* @len:
* @source:
+ * @append: Text to append, can be NULL.
*
* Convert a message to html, quoting if the @credits attribution
* string is given.
@@ -1652,7 +1653,7 @@ em_utils_part_to_html(CamelMimePart *part, ssize_t *len, EMFormat *source)
* Return value: The html version.
**/
char *
-em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32 flags, ssize_t *len, EMFormat *source)
+em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32 flags, ssize_t *len, EMFormat *source, const char *append)
{
EMFormatQuote *emfq;
CamelStreamMem *mem;
@@ -1682,6 +1683,9 @@ em_utils_message_to_html(CamelMimeMessage *message, const char *credits, guint32
em_format_format_clone((EMFormat *)emfq, NULL, NULL, message, source);
g_object_unref (emfq);
+ if (append && *append)
+ camel_stream_write ((CamelStream*)mem, append, strlen (append));
+
camel_stream_write((CamelStream *)mem, "", 1);
camel_object_unref(mem);