MCPcopy Create free account
hub / github.com/chatmail/core / connect

Method connect

python/src/deltachat/direct_imap.py:37–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 2

__init__Method · 0.95
setupFunction · 0.45

Calls 3

select_folderMethod · 0.95
loginMethod · 0.80
get_configMethod · 0.45

Tested by

no test coverage detected