VMM/Config: Added mailbox.root setting. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Tue, 20 Jul 2010 16:25:31 +0000
branchv0.6.x
changeset 298 ee89399346cb
parent 297 e21ceaabe871
child 299 d15a27eaa9d2
VMM/Config: Added mailbox.root setting.
VirtualMailManager/Config.py
update_config.py
vmm.cfg
--- a/VirtualMailManager/Config.py	Tue Jul 20 03:15:57 2010 +0000
+++ b/VirtualMailManager/Config.py	Tue Jul 20 16:25:31 2010 +0000
@@ -341,6 +341,7 @@
             'mailbox': {
                 'folders': LCO(str, 'Drafts:Sent:Templates:Trash', self.get),
                 'format': LCO(str, 'maildir', self.get),
+                'root': LCO(str, 'Maildir', self.get),
             },
             'misc': {
                 'base_directory': LCO(str, '/srv/mail', self.get, is_dir),
--- a/update_config.py	Tue Jul 20 03:15:57 2010 +0000
+++ b/update_config.py	Tue Jul 20 16:25:31 2010 +0000
@@ -104,6 +104,7 @@
                      ('maildir.diskusage', 'account.disk_usage'),
                      ('maildir.delete',    'account.delete_directory'),
                      ('maildir.folders',   'mailbox.folders'),
+                     ('maildir.name',      'mailbox.root'),
                      ('misc.forcedel',     'domain.force_deletion'),
                      ('misc.passwdscheme', 'misc.password_scheme'),
                      ('misc.dovecotvers',  'misc.dovecot_version')):
--- a/vmm.cfg	Tue Jul 20 03:15:57 2010 +0000
+++ b/vmm.cfg	Tue Jul 20 16:25:31 2010 +0000
@@ -20,18 +20,20 @@
 #
 [mailbox]
 ; The mailbox format to be used for user's mailboxes. (String)
-; Depending on the used Dovecot version there are up to four supported formats:
+; Depending on the used Dovecot version there are up to 3 supported formats:
 ;    * maildir - since Dovecot v1.0.0
-;    * mbox    - since Dovecot v1.0.0
-;    * dbox    - since Dovecot v1.2.0
-;    * mdbox   - comes with Dovecot v2.0.0
+;    * mdbox   - since Dovecot v2.0.beta1
+;    * sdbox   - since Dovecot v2.0.rc3
 format = maildir
 ; A colon separated list of mailbox names, that should be created (String)
-; Works currently only if the format is either 'maildir' or 'mbox' . For
-; other formats use Dovecot's Autocreate plugin:
-;	<http://wiki.dovecot.org/Plugins/Autocreate>
 ; e.g.: folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
 folders = Drafts:Sent:Templates:Trash
+; Name of the mailbox root directory in a user's home. (String)
+; Usually used names (format: name):
+;    * maildir: Maildir
+;    * mdbox:   mdbox
+;    * sdbox:   sdbox
+root = Maildir
 
 #
 # Domain settings