aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Xin <jedy.wang@sun.com>2007-07-02 14:58:41 +0800
committerJedy Jedy Wang <jedywang@src.gnome.org>2007-07-02 14:58:41 +0800
commit4672dd71dd65019e47a69d130e6951d9908a0f05 (patch)
tree241c91efd86066dbeabae887cf9651ac9cda0313
parent46f23c2a3a08fef818f31727bab2b0a064044f25 (diff)
downloadgsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar.gz
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar.bz2
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar.lz
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar.xz
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.tar.zst
gsoc2013-evolution-4672dd71dd65019e47a69d130e6951d9908a0f05.zip
Fixes #450820.
2007-07-02 Wang Xin <jedy.wang@sun.com> Fixes #450820. * em-format-quote.c: Add an empty new line at the beginning of the mail body when relpying a mail. svn path=/trunk/; revision=33738
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-format-quote.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a6f8fa7049..894aa7addd 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-02 Wang Xin <jedy.wang@sun.com>
+
+ Fixes #450820.
+
+ * em-format-quote.c: Add an empty new line at the beginning
+ of the mail body when relpying a mail.
+
2007-06-25 Milan Crha <mcrha@redhat.com>
** Fix for bug #352947
diff --git a/mail/em-format-quote.c b/mail/em-format-quote.c
index dc23976089..647a7783a5 100644
--- a/mail/em-format-quote.c
+++ b/mail/em-format-quote.c
@@ -134,6 +134,12 @@ em_format_quote_new(const char *credits, CamelStream *stream, guint32 flags)
}
static void
+emfq_format_empty_line(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info)
+{
+ camel_stream_printf(stream, "<br>\n");
+}
+
+static void
emfq_format_clone(EMFormat *emf, CamelFolder *folder, const char *uid, CamelMimeMessage *msg, EMFormat *src)
{
EMFormatQuote *emfq = (EMFormatQuote *) emf;
@@ -143,6 +149,7 @@ emfq_format_clone(EMFormat *emf, CamelFolder *folder, const char *uid, CamelMime
camel_stream_reset(emfq->stream);
+ emfq_format_empty_line(emf, emfq->stream, (CamelMimePart *)msg, NULL);
handle = em_format_find_handler(emf, "x-evolution/message/prefix");
if (handle)
handle->handler(emf, emfq->stream, (CamelMimePart *)msg, handle);