summaryrefslogtreecommitdiff
blob: 36da52c30170175a61b66b4721dcf7e91a35f148 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- camel/camel-disco-diary.c.orig
+++ camel/camel-disco-diary.c
@@ -411,6 +411,7 @@ camel_disco_diary_replay (CamelDiscoDiary *diary,
 
 	/* Truncate the log */
 	ftruncate (fileno (diary->file), 0);
+	rewind (diary->file);
 
 	g_propagate_error (error, local_error);
 }