(self, imapobj)
| 325 | return None |
| 326 | |
| 327 | def __start_tls(self, imapobj): |
| 328 | if 'STARTTLS' in imapobj.capabilities and not self.usessl: |
| 329 | self.ui.debug('imap', 'Using STARTTLS connection') |
| 330 | try: |
| 331 | imapobj.starttls() |
| 332 | except imapobj.error as e: |
| 333 | raise OfflineImapError("Failed to start " |
| 334 | "TLS connection: %s"% str(e), |
| 335 | OfflineImapError.ERROR.REPO, None, exc_info()[2]) |
| 336 | |
| 337 | ## All __authn_* procedures are helpers that do authentication. |
| 338 | ## They are class methods that take one parameter, IMAP object. |
no test coverage detected