VirtualMailManager/mailbox.py
branchv0.6.x
changeset 323 d58cc465dc61
parent 322 94bd10e237e5
child 326 8f8d9c4c8332
equal deleted inserted replaced
322:94bd10e237e5 323:d58cc465dc61
   247         cmd_args = [cfg_dget('bin.dovecotpw'), 'mailbox', 'create', '-u',
   247         cmd_args = [cfg_dget('bin.dovecotpw'), 'mailbox', 'create', '-u',
   248                     str(self._user.address)]
   248                     str(self._user.address)]
   249         if subscribe:
   249         if subscribe:
   250             cmd_args.append('-s')
   250             cmd_args.append('-s')
   251         cmd_args.extend(mailboxes)
   251         cmd_args.extend(mailboxes)
   252         print '\n -> %r\n' % cmd_args
       
   253         process = Popen(cmd_args, stdout=PIPE, stderr=PIPE)
   252         process = Popen(cmd_args, stdout=PIPE, stderr=PIPE)
   254         stdout, stderr = process.communicate()
   253         stdout, stderr = process.communicate()
   255         if process.returncode:
   254         if process.returncode:
   256             raise VMMError(stderr.strip(), VMM_ERROR)
   255             raise VMMError(stderr.strip(), VMM_ERROR)
   257 
   256