VMM/mailbox: Added missing dummy translator (_) and comment for v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 07 Feb 2011 21:50:44 +0000
branchv0.6.x
changeset 386 b7854259ad74
parent 385 0cae9989395b
child 387 05dc4e1f8dff
VMM/mailbox: Added missing dummy translator (_) and comment for method Mailbox._add_boxes.
VirtualMailManager/mailbox.py
--- a/VirtualMailManager/mailbox.py	Mon Feb 07 21:28:33 2011 +0000
+++ b/VirtualMailManager/mailbox.py	Mon Feb 07 21:50:44 2011 +0000
@@ -23,6 +23,7 @@
 __all__ = ('new', 'Maildir', 'SingleDbox', 'MultiDbox',
            'utf8_to_mutf7', 'mutf7_to_utf8')
 
+_ = lambda msg: msg
 cfg_dget = lambda option: None
 
 
@@ -102,6 +103,9 @@
         os.chdir(self._user.home)
 
     def _add_boxes(self, mailboxes, subscribe):
+        """Create all mailboxes from the `mailboxes` list.
+        If `subscribe` is *True*, the mailboxes will be listed in the
+        subscriptions file."""
         raise NotImplementedError
 
     def _validate_box_name(self, name, good, bad):
@@ -285,4 +289,4 @@
         return SingleDbox(account)
     raise ValueError('unsupported mailbox format: %r' % mbfmt)
 
-del cfg_dget
+del _, cfg_dget