aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-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);