class Options(usage.Options, strcred.AuthOptionMixin): (source)
Constructor: Options()
An options list parser for twistd mail.
Method | __init__ |
Parse options and create a mail service. |
Method | add |
Add an endpoint to a service. |
Method | opt |
Specify an aliases(5) file to use for the last specified domain. |
Method | opt |
Send undeliverable messages to the postmaster. |
Method | opt |
Make the most recently specified domain the default domain. |
Method | opt |
Generate an SMTP/POP3 virtual domain. |
Method | opt |
Add a POP3 port listener on the specified endpoint. |
Method | opt |
Add an SMTP port listener on the specified endpoint. |
Method | opt |
Add a user and password to the last specified domain. |
Method | post |
Check the validity of the specified set of options and configure authentication. |
Instance Variable | comp |
Metadata for the shell tab completion system. |
Instance Variable | last |
The most recently specified domain. |
Instance Variable | longdesc |
A long description of the plugin for use in the usage message. |
Instance Variable | opt |
Information about supported flags. See Options for details. |
Instance Variable | opt |
Information about supported parameters. See Options for details. |
Instance Variable | service |
The email service. |
Instance Variable | synopsis |
A description of options for use in the usage message. |
Method | _get |
Return a list of endpoints for the specified service, constructing defaults if necessary. |
Instance Variable | _proto |
A mapping of default service to port. |
Inherited from Options
:
Method | __str__ |
Undocumented |
Method | get |
Returns a string containing a description of these options and how to pass them to the executed file. |
Method | get |
Undocumented |
Method | opt |
Display this help and exit. |
Method | opt |
Display Twisted version and exit. |
Method | parse |
I am called with any leftover arguments which were not options. |
Method | parse |
The guts of the command-line parser. |
Class Variable | completion |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | parent |
Undocumented |
Instance Variable | defaults |
Undocumented |
Instance Variable | docs |
Undocumented |
Instance Variable | long |
Undocumented |
Instance Variable | opts |
Undocumented |
Instance Variable | short |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | sub |
Undocumented |
Instance Variable | synonyms |
Undocumented |
Method | _gather |
Gather up boolean (flag) options. |
Method | _gather |
Gather up options with their own handler methods. |
Method | _gather |
Gather options which take a value. |
Method | _generic |
Undocumented |
Instance Variable | _dispatch |
Undocumented |
Inherited from AuthOptionMixin
(via Options
):
Method | add |
Supply a supplied credentials checker to the Options class. |
Method | opt |
Specify an authentication method for the server. |
Method | opt |
Show all authentication methods available. |
Method | opt |
Show help for a particular authentication type. |
Method | supports |
Returns whether a checker factory will provide at least one of the credentials interfaces that we care about. |
Method | supports |
Returns whether a particular credentials interface is supported. |
Class Variable | auth |
A writeable object to which this options class will send all help-related output. Default: sys.stdout |
Class Variable | supported |
An iterable object that returns credential interfaces which this application is able to support. |
Method | _checker |
Return a list of which authTypes will be displayed by --help-auth. This makes it a lot easier to test this module. |
Generate an SMTP/POP3 virtual domain.
This option requires an argument of the form 'NAME=PATH' where NAME is the DNS domain name for which email will be accepted and where PATH is a the filesystem path to a Maildir folder. [Example: 'example.com=/tmp/example.com']
Add a POP3 port listener on the specified endpoint.
You can listen on multiple ports by specifying multiple --pop3 options.
Add an SMTP port listener on the specified endpoint.
You can listen on multiple ports by specifying multiple --smtp options.
twisted.python.usage.Options.postOptions
Check the validity of the specified set of options and configure authentication.
Raises | |
UsageError | When the set of options is invalid. |
list
of list
of (0) bytes
, (1) bytes
, (2) object
, (3) bytes
, (4) None
or callable which takes bytes
and returns object
=
(source)
¶
Information about supported parameters. See Options
for details.
Return a list of endpoints for the specified service, constructing defaults if necessary.
If no endpoints were configured for the service and the protocol was not explicitly disabled with a --no-* option, a default endpoint for the service is created.
Parameters | |
reactor:IReactorTCP provider | If any endpoints are created, the reactor with which they are created. |
service:bytes | The type of service for which to retrieve endpoints, either b'pop3' or b'smtp'. |
Returns | |
list of IStreamServerEndpoint provider | The endpoints for the specified service as configured by the command line parameters. |