(self)
| 35 | self.connect() |
| 36 | |
| 37 | def connect(self): |
| 38 | host = self.account.get_config("configured_mail_server") |
| 39 | port = 993 |
| 40 | |
| 41 | user = self.account.get_config("addr") |
| 42 | host = user.rsplit("@")[-1] |
| 43 | pw = self.account.get_config("mail_pw") |
| 44 | |
| 45 | self.conn = MailBox(host, port, ssl_context=ssl.create_default_context()) |
| 46 | self.conn.login(user, pw) |
| 47 | |
| 48 | self.select_folder("INBOX") |
| 49 | |
| 50 | def shutdown(self): |
| 51 | try: |
no test coverage detected