VMM/Config: Added boolean option mailbox.subscribe. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Thu, 22 Jul 2010 21:20:52 +0000
branchv0.6.x
changeset 304 df0f7b22540c
parent 303 8dd3a107fd92
child 305 3c62f581d17a
VMM/Config: Added boolean option mailbox.subscribe.
VirtualMailManager/Config.py
man/de/man5/vmm.cfg.5.rst
man/man5/vmm.cfg.5.rst
man/substitute_links_5.rst
vmm.cfg
--- a/VirtualMailManager/Config.py	Thu Jul 22 16:18:38 2010 +0000
+++ b/VirtualMailManager/Config.py	Thu Jul 22 21:20:52 2010 +0000
@@ -332,6 +332,7 @@
                                self.unicode),
                 'format': LCO(str, 'maildir', self.get, check_mailbox_format),
                 'root': LCO(str, 'Maildir', self.unicode),
+                'subscribe': LCO(bool_t, True, self.getboolean),
             },
             'misc': {
                 'base_directory': LCO(str, '/srv/mail', self.get, is_dir),
--- a/man/de/man5/vmm.cfg.5.rst	Thu Jul 22 16:18:38 2010 +0000
+++ b/man/de/man5/vmm.cfg.5.rst	Thu Jul 22 21:20:52 2010 +0000
@@ -330,12 +330,22 @@
   Benutzers. Übliche Namen, je nach verwendetem |mailbox.format|_, sind:
   **Maildir**, **mdbox** oder **sdbox**.
 
+.. _mailbox.subscribe:
+
+``subscribe (Vorgabe: true)`` : *Boolean*
+  Wenn dieser Option der Wert **true** zugewiesen wurde, werden die, gemäß
+  |mailbox.folders|_, erstellen Mailboxen in der subscriptions-Datei des
+  Benutzers gelistet. Sollen die erstellen Mailboxen nicht nicht in der
+  subscriptions-Datei gelistet werden, weisen Sie dieser Option den Wert
+  **false** zu.
+
 Beispiel::
 
   [mailbox]
   folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
   format = maildir
   root = Maildir
+  subscribe = false
 
 
 MISC
--- a/man/man5/vmm.cfg.5.rst	Thu Jul 22 16:18:38 2010 +0000
+++ b/man/man5/vmm.cfg.5.rst	Thu Jul 22 21:20:52 2010 +0000
@@ -316,12 +316,21 @@
   names, depending on the used |mailbox.format|_, are **Maildir**, **mdbox**
   or **sdbox**.
 
+.. _mailbox.subscribe:
+
+``subscribe (default: true)`` : *Boolean*
+  When this option is set to **true**, the mailboxes from the
+  |mailbox.folders|_ option will be listed in the user's subscriptions file.
+  If you don't want to subscribe the created mailboxes, set this option to
+  **false**.
+
 Example::
 
   [mailbox]
   folders = Drafts:Sent:Templates:Trash:Lists.Dovecot:Lists.Postfix
   format = maildir
   root = Maildir
+  subscribe = false
 
 
 MISC
--- a/man/substitute_links_5.rst	Thu Jul 22 16:18:38 2010 +0000
+++ b/man/substitute_links_5.rst	Thu Jul 22 21:20:52 2010 +0000
@@ -1,6 +1,7 @@
 .. Substitutions in section 5
 
 .. |account.password_length| replace:: **password_length**
+.. |mailbox.folders| replace:: **folders**
 .. |mailbox.format| replace:: **format**
 .. |misc.crypt_sha256_rounds| replace:: **crypt_sha256_rounds**
 .. |misc.crypt_sha512_rounds| replace:: **crypt_sha512_rounds**
--- a/vmm.cfg	Thu Jul 22 16:18:38 2010 +0000
+++ b/vmm.cfg	Thu Jul 22 21:20:52 2010 +0000
@@ -34,6 +34,9 @@
 ;    * mdbox:   mdbox
 ;    * sdbox:   sdbox
 root = Maildir
+; Set to true if the mailboxes from the folders option should be listed in
+; the subscriptions file. (Boolean)
+subscribe = true
 
 #
 # Domain settings