aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);