aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-16 06:18:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-16 06:20:55 +0800
commit5045330ee014deb11accbfcf9d19a47f61836ba7 (patch)
treee5d6417e2fe2bf22152776de98f823b552b1244c /mail
parent3adac597cff883050c09e765cb1c8e3cde05e3c9 (diff)
downloadgsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar.gz
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar.bz2
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar.lz
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar.xz
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.tar.zst
gsoc2013-evolution-5045330ee014deb11accbfcf9d19a47f61836ba7.zip
Bug 345775 – Missing blank line between messages in saved mbox
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 6bb9e059a4..2ffecb5509 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2091,7 +2091,9 @@ save_messages_exec (struct _save_messages_msg *m)
if (camel_stream_write_string(stream, from) == -1
|| camel_stream_flush(stream) == -1
|| camel_data_wrapper_write_to_stream((CamelDataWrapper *)message, (CamelStream *)filtered_stream) == -1
- || camel_stream_flush((CamelStream *)filtered_stream) == -1) {
+ || camel_stream_flush((CamelStream *)filtered_stream) == -1
+ || camel_stream_write_string(stream, "\n") == -1
+ || camel_stream_flush(stream) == -1) {
camel_exception_setv(&m->base.ex, CAMEL_EXCEPTION_SYSTEM,
_("Error saving messages to: %s:\n %s"), m->path, g_strerror(errno));
g_free(from);