[mhonarc] fix arguments passed to mhonarc



commit 934464f701097ef8bbff191946a843389d4dd67d
Author: Olav Vitters <olav vitters nl>
Date:   Tue Feb 12 22:44:46 2013 +0100

    fix arguments passed to mhonarc

 archive.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/archive.py b/archive.py
index 3fef606..7715960 100755
--- a/archive.py
+++ b/archive.py
@@ -12,6 +12,7 @@ import datetime
 import email.utils
 import tempfile
 import shutil
+import subprocess
 try:
         from cStringIO import StringIO
 except ImportError:
@@ -84,10 +85,10 @@ class Archiver:
 
         # Call mhonarc for all messages in 'newmsgs'
         with open(self.ERRORLOG, "a") as error_fd:
-            cmd = ['mhonarc', '-umask', '022', '-rcfile', rcfile, '-add', '-output', path, newmsgs.name,
+            cmd = ['mhonarc', '-umask', '022', '-rcfile', rcfile, '-add', '-outdir', path, newmsgs.name,
                               '-definevar', 'ARCHDATE=%s LISTNAME=%s' % (archivepath, self.listname)]
 
-            #subprocess.call(cmd, stdout=error_fd, stderr=subprocess.STDOUT)
+            subprocess.call(cmd, stdout=error_fd, stderr=subprocess.STDOUT)
 
         # Append message(s) to mbox (possibly gzipped)
         if os.path.exists("%s.txt" % path):


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