aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-spool-summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/local/camel-spool-summary.c')
-rw-r--r--camel/providers/local/camel-spool-summary.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/camel/providers/local/camel-spool-summary.c b/camel/providers/local/camel-spool-summary.c
index d8c85b9e6d..ff8f6a85a9 100644
--- a/camel/providers/local/camel-spool-summary.c
+++ b/camel/providers/local/camel-spool-summary.c
@@ -784,6 +784,13 @@ spool_summary_sync_full(CamelSpoolSummary *cls, gboolean expunge, CamelFolderCha
}
}
+ /* if the last message was deleted, and we had any messages left,
+ make sure we close out with a closing \n - since we removed the
+ one part of the From line following it */
+ if (lastdel && count > 0) {
+ write(fdout, "\n", 1);
+ }
+
/* sync out content */
if (fsync(fdout) == -1) {
g_warning("Cannot sync temporary folder: %s", strerror(errno));