How to use the imap.ImapClient function in imap

To help you get started, we’ve selected a few imap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hotsyk / mailpost / mailpost / handler.py View on Github external
username = self.config.get('username', None)
            if not username:
                raise ConfigurationError("'username' option is required")
            password = self.config.get('password', None)
            if not password:
                raise ConfigurationError("'password' option is required")
            port = self.config.get('port', None)
            ssl = self.config.get('ssl', False)
            query = self.config.get('query', 'all')
            if not query in ['all', 'unseen', 'undeleted']:
                raise ConfigurationError("Unknown query: %s" % query)
            mailboxes = self.config.get('inboxes', ['INBOX'])
            self.base_url = self.config.get('base_url', None)

            self.rules = self.config['rules']
            client = ImapClient(host, username, password, port, ssl)
            self.msg_list = getattr(client, query)()
        else:
            raise ConfigurationError("Backend '%s' is not supported" %\
                                     self.config['backend'])

imap

The integration of single-cell RNA-sequencing datasets from multiple sources is critical for deciphering cell-cell heterogeneities and interactions in complex biological systems. We present a novel unsupervised batch removal framework, called iMAP, based on two state-of-art deep generative models – autoencoders and generative adversarial networks.

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis