MCPcopy
hub / github.com/OfflineIMAP/offlineimap / __start_tls

Method __start_tls

offlineimap/imapserver.py:327–335  ·  view source on GitHub ↗
(self, imapobj)

Source from the content-addressed store, hash-verified

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.

Callers 1

__authn_helperMethod · 0.95

Calls 3

OfflineImapErrorClass · 0.90
starttlsMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected