def logout(self):
        if self._imap4 is not None:
            self._imap4.logout()
            self._imap4 = None
Signs out of the mail account.
dataset/ETHPy150Open clips/pattern/pattern/web/imap/__init__.py/Mail.logout