parsedmarc/__init__.py
def get_imap_capabilities(server):
    """
    Returns a list of an IMAP server's capabilities

    Args:
        server (imapclient.IMAPClient): An instance of imapclient.IMAPClient

    Returns (list): A list of capabilities
    """

    capabilities = list(map(str, list(server.capabilities())))
    for i in range(len(capabilities)):
        capabilities[i] = str(capabilities[i]).replace("b'",
                                                       "").replace("'",
                                                                   "")
    logger.debug("IMAP server supports: {0}".format(capabilities))

    return capabilities
def get_imap_capabilities(server):
    capabilities = list(map(str, list(server.capabilities())))
    for i in range(len(capabilities)):
        capabilities[i] = str(capabilities[i]).replace("b'",
                                                       "").replace("'",
                                                                   "")
    logger.debug("IMAP server supports: {0}".format(capabilities))

    return capabilities
def get_imap_capabilities ( server ) : capabilities = list ( map ( str , list ( server . capabilities ( ) ) ) ) for i in range ( len ( capabilities ) ) : capabilities [ i ] = str ( capabilities [ i ] ) . replace ( "b'" , "" ) . replace ( "'" , "" ) logger . debug ( "IMAP server supports: {0}" . format ( capabilities ) ) return capabilities
Returns a list of an IMAP server's capabilities

    Args:
        server (imapclient.IMAPClient): An instance of imapclient.IMAPClient

    Returns (list): A list of capabilities
Returns a list of an IMAP server s capabilities