def socket(self): """Return socket instance used to connect to IMAP4 server. socket = <instance>.socket() """ return self.sock