VirtualMailManager/mailbox.py
branchv0.6.x
changeset 422 33a45e4c80c4
parent 415 c7a963e6cf6e
child 568 14abdd04ddf5
--- a/VirtualMailManager/mailbox.py	Sat Mar 05 22:46:17 2011 +0000
+++ b/VirtualMailManager/mailbox.py	Thu Mar 10 19:34:28 2011 +0000
@@ -254,8 +254,8 @@
         if subscribe:
             cmd_args.append('-s')
         cmd_args.extend(mailboxes)
-        process = Popen(cmd_args, stdout=PIPE, stderr=PIPE)
-        stdout, stderr = process.communicate()
+        process = Popen(cmd_args, stderr=PIPE)
+        stderr = process.communicate()[1]
         if process.returncode:
             e_msg = _(u'Failed to create mailboxes: %r\n') % mailboxes
             raise VMMError(e_msg + stderr.strip(), VMM_ERROR)