[mhonarc] bug fix: ensure buffers are flushed to disk



commit 8cbc6e43c93197b508bafcd7e0964ef2cb0af833
Author: Olav Vitters <olav vitters nl>
Date:   Wed Feb 13 22:26:00 2013 +0100

    bug fix: ensure buffers are flushed to disk

 archive.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/archive.py b/archive.py
index 8f85171..2aa33a6 100755
--- a/archive.py
+++ b/archive.py
@@ -105,6 +105,7 @@ class Archiver:
 
             # Call mhonarc for all messages in 'newmsgs'
             with open(self.ERRORLOG, "ab") as error_fd:
+                newmsgs.flush()
                 cmd = ['mhonarc', '-umask', '022', '-rcfile', rcfile, '-add', '-outdir', path, newmsgs.name,
                                   '-definevar', 'ARCHDATE=%s LISTNAME=%s' % (archivepath, self.listname)]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]