VirtualMailManager/Account.py
branchv0.6.x
changeset 302 32b4a39b5640
parent 293 a77b67673aa6
child 306 504fd29b4712
--- a/VirtualMailManager/Account.py	Wed Jul 21 21:53:39 2010 +0000
+++ b/VirtualMailManager/Account.py	Wed Jul 21 23:55:32 2010 +0000
@@ -4,6 +4,7 @@
 
 """
     VirtualMailManager.Account
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~
 
     Virtual Mail Manager's Account class to manage e-mail accounts.
 """
@@ -247,7 +248,8 @@
             sieve_col = 'sieve'
         else:
             sieve_col = 'managesieve'
-        self._prepare(MailLocation(format=cfg_dget('mailbox.format')))
+        self._prepare(MailLocation(directory=cfg_dget('mailbox.root'),
+                                   mbfmt=cfg_dget('mailbox.format')))
         sql = "INSERT INTO users (local_part, passwd, uid, gid, mid, tid,\
  smtp, pop3, imap, %s) VALUES ('%s', '%s', %d, %d, %d, %d, %s, %s, %s, %s)" % (
             sieve_col, self._addr.localpart, pwhash(self._passwd,