def connect(self):
		if cint(self.settings.use_imap):
			return self.connect_imap()
		else:
			return self.connect_pop()
Connect to **Email Account**.
dataset/ETHPy150Open frappe/frappe/frappe/email/receive.py/EmailServer.connect