Send a CAPA command to retrieve the capabilities supported by the server.

Not all servers support this command. If the server does not support this, it is treated as though it returned a successful response listing no capabilities. At some future time, this may be changed to instead seek out information about a server's capabilities in some other fashion (only if it proves useful to do so, and only if there are servers still in use which do not support CAPA but which do support POP3 extensions that are useful).

ParametersuseCacheA flag that determines whether previously retrieved results should be used if available. (type: bool)
ReturnsA deferred which fires with a mapping of capability name to parameters. For example:
    C: CAPA
    S: +OK Capability list follows
    S: TOP
    S: USER
    S: SASL CRAM-MD5 KERBEROS_V4
    S: RESP-CODES
    S: LOGIN-DELAY 900
    S: PIPELINING
    S: EXPIRE 60
    S: UIDL
    S: IMPLEMENTATION Shlemazle-Plotz-v302
    S: .

will be lead to a result of:

    | {'TOP': None,
    |  'USER': None,
    |  'SASL': ['CRAM-MD5', 'KERBEROS_V4'],
    |  'RESP-CODES': None,
    |  'LOGIN-DELAY': ['900'],
    |  'PIPELINING': None,
    |  'EXPIRE': ['60'],
    |  'UIDL': None,
    |  'IMPLEMENTATION': ['Shlemazle-Plotz-v302']}
(type: Deferred which successfully results in dict mapping bytes to list of bytes and/or bytes to None)
Function consume Undocumented
Function capaNotSupported Undocumented
Function gotCapabilities Undocumented
def consume(line): (source)
Undocumented
def capaNotSupported(err): (source)
Undocumented
def gotCapabilities(result): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.