<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def imap_connect(self):
 """ Connect to the IMAP mailbox. """

        self.mailbox = imaplib.IMAP4_SSL(self.imap_string, self.port)
        self.mailbox.login(self.uname, self.pwd)
        self.mailbox.select()