Projects
Kolab:16:Testing:Candidate
pykolab-python3
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 24
View file
pykolab-0.9.0.tar.gz/pykolab/cli/cmd_delete_mailbox.py
Changed
@@ -37,6 +37,17 @@ def description(): return """Delete a mailbox or sub-folder. Note that the mailbox or folder is removed recursively.""" +def cli_options(): + my_option_group = conf.add_cli_parser_option_group(_("CLI Options")) + my_option_group.add_option( + '--server', + dest="connect_server", + action="store", + default=None, + metavar="SERVER", + help=_("Delete mailboxes on server SERVER only.") + ) + def execute(*args, **kw): """ Delete mailbox @@ -48,7 +59,10 @@ imap = IMAP() - imap.connect() + if not conf.connect_server == None: + imap.connect(server=conf.connect_server) + else: + imap.connect() delete_folders = while len(conf.cli_args) > 0:
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.