From 6e1acbf79457baf05e63a4976c091dfb816b8e9e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 21 Jun 2009 21:08:56 +0000 Subject: [PATCH] Use ::flush() (aka fsync()) after a maildir message is written (Georg Sauthoff). --- src/net/maildir/maildirFolder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/maildir/maildirFolder.cpp b/src/net/maildir/maildirFolder.cpp index 4f0acaf3..9a52171c 100644 --- a/src/net/maildir/maildirFolder.cpp +++ b/src/net/maildir/maildirFolder.cpp @@ -945,6 +945,8 @@ void maildirFolder::copyMessageImpl(const utility::file::path& tmpDirPath, if (progress) progress->progress(total, size); } + + os->flush(); } catch (exception& e) {