VirtualMailManager/cli/clihelp.py
author Pascal Volk <user@localhost.localdomain.org>
Sun, 02 Sep 2012 21:33:53 +0000
changeset 607 46454ff9d441
parent 606 ab97727357a4
child 608 0ed93eb8b364
permissions -rw-r--r--
VMM/cli/subcommands: Corrected username's usage string. username's name argument is optional.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
606
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     1
# -*- coding: UTF-8 -*-
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     2
# Copyright (c) 2012, Pascal Volk
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     3
# See COPYING for distribution information.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     4
"""
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     5
    VirtualMailManager.cli.vmmhelp
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     6
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     7
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     8
    Virtual Mail Manager's command line help.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
     9
"""
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    10
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    11
_ = lambda msg: msg
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    12
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    13
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    14
help_msgs = {'configget': (_(u"""This subcommand is used to display the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    15
actual value of the given configuration <option>."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    16
    # configset
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    17
    'configset': (_(u"""Use this subcommand to set or update a single
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    18
configuration option's value. <option> is the configuration option, <value>
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    19
is the <option>'s new value."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    20
_(u"""Note: This subcommand will create a new vmm.cfg without any comments.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    21
Your current configuration file will be backed as vmm.cfg.bak."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    22
    # configure
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    23
    'configure': (_(u"""Starts the interactive configuration for all
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    24
configuration sections."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    25
_(u"""In this process the currently set value of each option will be displayed
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    26
in square brackets. If no value is configured, the default value of each
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    27
option will be displayed in square brackets. Press the return key, to accept
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    28
the displayed value."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    29
_(u"""If the optional argument <section> is given, only the configuration
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    30
options from the given section will be displayed and will be configurable.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    31
The following sections are available:
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    32
"""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    33
"""    account, bin, database, domain, mailbox, misc""",
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    34
_(u"""All configuration options are described in vmm.cfg(5)."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    35
_(u"""Note: This subcommand will create a new vmm.cfg without any comments.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    36
Your current configuration file will be backed as vmm.cfg.bak."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    37
    # getuser
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    38
    'getuser': (_(u"""If only the <uid> is available, for example from process
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    39
list, the subcommand getuser will show the user's address."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    40
    # listdomains
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    41
    'listdomains': (_(u"""This subcommand lists all available domains. All
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    42
domain names will be prefixed either with `[+]', if the domain is a primary
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    43
domain, or with `[-]', if it is an alias domain name. The output can be
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    44
limited with an optional <pattern>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    45
_(u"""To perform a wild card search, the % character can be used at the start
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    46
and/or the end of the <pattern>."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    47
    # listpwschemes
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    48
    'listpwschemes': (_(u"""This subcommand lists all password schemes which
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    49
could be used in the vmm.cfg as value of the misc.password_scheme option.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    50
The output varies, depending on the used Dovecot version and the system's
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    51
libc."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    52
_(u"""When your Dovecot installation isn't too old, you will see additionally
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    53
a few usable encoding suffixes. One of them can be appended to the password
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    54
scheme."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    55
    # version
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    56
    'version': (_(u"""Prints vmm's version and copyright information to stdout.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    57
After this vmm exits."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    58
    # domainadd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    59
    'domainadd': (_(u"""Adds the new domain into the database and creates the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    60
domain directory."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    61
_(u"""If the optional argument <transport> is given, it will override the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    62
default transport (domain.transport) from vmm.cfg. The specified <transport>
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    63
will be the default transport for all new accounts in this domain."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    64
_(u"""Configuration-related behavior:"""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    65
u""" * domain.auto_postmaster""",
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    66
_(u"""When that option is set to true (default) vmm will automatically create
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    67
the postmaster account for the new domain and prompt for postmaster@<fqdn>'s
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    68
password."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    69
u""" * account.random_password""",
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    70
_(u"""When the value of that option is also set to true, vmm will automatically
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    71
create the postmaster account for the new domain and print the generated
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    72
postmaster password to stdout."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    73
    # domaindelete
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    74
    'domaindelete': (_(u"""This subcommand deletes the domain specified by
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    75
<fqdn>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    76
_(u"""If there are accounts, aliases and/or relocated users assigned to the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    77
given domain, vmm will abort the requested operation and show an error
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    78
message. If you know, what you are doing, you can specify the optional keyword
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    79
'force'."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    80
_(u"""If you really always know what you are doing, edit your vmm.cfg and set
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    81
the option domain.force_deletion to true."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    82
    # domaininfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    83
    'domaininfo': (_(u"""This subcommand shows some information about the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    84
given domain."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    85
_(u"""For a more detailed information about the domain the optional argument
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    86
<details> can be specified. A possible <details> value can be one of the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    87
following six keywords:"""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    88
"""    accounts, aliasdomains, aliases, catchall, relocated, full""",),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    89
    # domainquota
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    90
    'domainquota': (_(u"""This subcommand is used to configure a new quota
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    91
limit for the accounts of the domain - not for the domain itself."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    92
_(u"""The default quota limit for accounts is defined in the vmm.cfg
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    93
(domain.quota_bytes and domain.quota_messages)."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    94
_(u"""The new quota limit will affect only those accounts for which the limit
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    95
has not been overridden. If you want to restore the default to all accounts,
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    96
you may pass the keyword 'force'. When the argument <messages> was omitted the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    97
default number of messages 0 (zero) will be applied."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    98
    # domainservices
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
    99
    'domainservices': (_(u"""To define which services could be used by the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   100
users of the domain — with the given <fqdn> — use this subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   101
_(u"""Each specified <service> will be enabled/usable. All other services
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   102
will be deactivated/unusable. Possible <service> names are:"""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   103
u"""    imap, pop3, sieve, smtp""",
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   104
_(u"""The new service set will affect only those accounts for which the set has
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   105
not been overridden. If you want to restore the default to all accounts, you
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   106
may pass the keyword 'force'."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   107
    # domaintransport
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   108
    'domaintransport': (_(u"""A new transport for the indicated domain can be
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   109
set with this subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   110
_(u"""The new transport will affect only those accounts for which the transport
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   111
has not been overridden. If you want to restore the default to all accounts,
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   112
you may pass the keyword 'force'."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   113
    # domainnote
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   114
    'domainnote': (_(u"""With this subcommand, it is possible to attach a
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   115
note to the specified domain. Without an argument, an existing note is
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   116
removed."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   117
    # aliasdomainadd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   118
    'aliasdomainadd': (_(u"""This subcommand adds the new alias domain
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   119
(<fqdn>) to the destination <domain> that should be aliased."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   120
    # aliasdomaindelete
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   121
    'aliasdomaindelete': (_(u"""Use this subcommand if the alias domain
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   122
<fqdn> should be removed."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   123
    # aliasdomaininfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   124
    'aliasdomaininfo': (_(u"""This subcommand shows to which domain the alias
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   125
domain <fqdn> is assigned to."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   126
    # aliasdomainswitch
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   127
    'aliasdomainswitch': (_(u"""If the destination of the existing alias
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   128
domain <fqdn> should be switched to another <destination> use this
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   129
subcommand."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   130
    # useradd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   131
    'useradd': (_(u"""Use this subcommand to create a new e-mail account for
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   132
the given <address>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   133
_(u"""If the <password> is not provided, vmm will prompt for it interactively.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   134
When no <password> is provided and account.random_password is set to true, vmm
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   135
will generate a random password and print it to stdout after the account has
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   136
been created."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   137
    # userdelete
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   138
    'userdelete': (_(u"""Use this subcommand to delete the account with the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   139
given <address>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   140
_(u"""If there are one or more aliases with an identical destination address,
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   141
vmm will abort the requested operation and show an error message. To prevent
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   142
this, specify the optional keyword 'force'."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   143
    # userinfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   144
    'userinfo': (_(u"""This subcommand displays some information about the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   145
account specified by <address>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   146
_(u"""If the optional argument <details> is given some more information will be
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   147
displayed. Possible values for <details> are:"""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   148
u"""    aliases, du. full""",),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   149
    # username
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   150
    'username': (_(u"""The user's real <name> can be set/updated with this
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   151
subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   152
_(u"""If no <name> is given, the value stored for the account is erased."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   153
),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   154
    # userpassword
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   155
    'userpassword': (_(u"""The password of an account can be updated with this
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   156
subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   157
_(u"""If no <password> was provided, vmm will prompt for it interactively."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   158
),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   159
    # usernote
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   160
    'usernote': (_(u"""With this subcommand, it is possible to attach a note
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   161
to the specified account. Without an argument, an existing note is
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   162
removed."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   163
    # userquota
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   164
    'userquota': (_(u"""This subcommand is used to set a new quota limit for
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   165
the given account."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   166
_(u"""When the argument <messages> was omitted the default number of messages
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   167
0 (zero) will be applied."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   168
_(u"""Instead of <storage> pass the keyword 'domain' to remove the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   169
account-specific override, causing the domain's value to be in effect."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   170
    # userservices
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   171
    'userservices': (_(u"""To grant a user access to the specified services,
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   172
use this command."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   173
_(u"""All omitted services will be deactivated/unusable for the user with the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   174
given <address>."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   175
_(u"""Instead of <service> pass 'domain' to remove the account-specific
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   176
override, causing the domain's value to be in effect."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   177
    # usertransport
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   178
    'usertransport': (_(u"""A different <transport> for an account can be
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   179
specified with this subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   180
_(u"""Instead of <transport> pass 'domain' to remove the account-specific
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   181
override, causing the domain's value to be in effect."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   182
    # aliasadd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   183
    'aliasadd': (_(u"""This subcommand is used to create a new alias
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   184
<address> with one or more <destination> addresses."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   185
_(u"""Within the destination address, the placeholders '%n', '%d', and '%='
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   186
will be replaced by the local part, the domain, or the email address with '@'
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   187
replaced by '=' respectively. In combination with alias domains, this enables
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   188
domain-specific destinations."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   189
    # aliasinfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   190
    'aliasinfo': (_(u"""Information about the alias with the given <address>
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   191
can be displayed with this subcommand."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   192
    # relocatedadd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   193
    'relocatedadd': (_(u"""A new relocated user can be created with this
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   194
subcommand."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   195
_(u"""<address> is the user's ex-email address, for example
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   196
b.user@example.com, and <newaddress> points to the new email address where
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   197
the user can be reached."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   198
    # relocatedinfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   199
    'relocatedinfo': (_(u"""This subcommand shows the new address of the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   200
relocated user with the given <address>."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   201
    # relocateddelete
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   202
    'relocateddelete': (_(u"""Use this subcommand in order to delete the
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   203
relocated user with the given <address>."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   204
    # catchalladd
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   205
    'catchalladd': (_(u"""This subcommand allows to specify destination
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   206
addresses for a domain, which shall receive mail addressed to unknown
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   207
local-parts within that domain. Those catch-all aliases hence "catch all" mail
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   208
to any address in the domain (unless a more specific alias, mailbox or
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   209
relocated entry exists)."""),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   210
_(u"""WARNING: Catch-all addresses can cause mail server flooding because
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   211
spammers like to deliver mail to all possible combinations of names, e.g.
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   212
to all addresses between abba@example.org and zztop@example.org."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   213
    # catchallinfo
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   214
    'catchallinfo': (_(u"""This subcommand displays information about catch-all
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   215
aliases defined for the domain <fqdn>."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   216
    # catchalldelete
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   217
    'catchalldelete': (_(u"""With this subcommand, catch-all aliases defined
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   218
for a domain can be removed, either all of them, or a single one if specified
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   219
explicitly."""),),
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   220
}
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   221
ab97727357a4 VMM/cli: Activated help subcommand.
Pascal Volk <user@localhost.localdomain.org>
parents:
diff changeset
   222
del _