def disconnect(self):

        self.handle.expunge()
        self.handle.close()
        self.handle.logout()
Closes the IMAP4 handle
dataset/ETHPy150Open codekoala/django-articles/articles/management/commands/check_for_articles_from_email.py/IMAPHandler.disconnect