Lines Matching refs:_imap

284         self._imap = self._create_IMAP4()
294 self._imap.debug = 5
295 self._imap._mesg = imaplib_logger.debug
338 return getattr(self._imap, "sslobj", self._imap.sock)
361 typ, data = self._imap._simple_command("STARTTLS")
366 self._imap.sock = tls.wrap_socket(self._imap.sock, ssl_context, self.host)
367 self._imap.file = self._imap.sock.makefile("rb")
496 typ, data = self._imap.logout()
507 self._imap.shutdown()
527 if self._imap.state != "AUTH":
529 "ENABLE command illegal in state %s" % self._imap.state
560 typ, data = self._imap._simple_command("ID", args)
562 typ, data = self._imap._untagged_response(typ, data, "ID")
579 if self._starttls_done and self._imap.state == "NONAUTH":
589 untagged = _dict_bytes_normaliser(self._imap.untagged_responses)
596 if self._imap.state in ("SELECTED", "AUTH"):
602 return tuple(to_bytes(c) for c in self._imap.capabilities)
716 typ, dat = self._imap._simple_command(cmd, directory, pattern)
718 typ, dat = self._imap._untagged_response(typ, dat, cmd)
795 return self._process_select_response(self._imap.untagged_responses)
808 _typ, data = self._imap._simple_command("UNSELECT")
859 tag = self._imap._command("NOOP")
878 self._idle_tag = self._imap._command("IDLE")
879 resp = self._imap._get_response()
940 line = self._imap._get_line()
974 self._imap.send(b"DONE\r\n")
1366 tag = self._imap._command(*args)
1367 typ, data = self._imap._command_complete("FETCH", tag)
1369 typ, data = self._imap._untagged_response(typ, data, "FETCH")
1489 tag = self._imap._command("EXPUNGE")
1547 quota_rep = pop_with_default(self._imap.untagged_responses, "QUOTA", [])
1593 tagged_commands = self._imap.tagged_commands
1596 line = self._imap._get_response()
1611 typ, data = self._imap._untagged_response(typ, data, to_unicode(response_name))
1635 tag = self._imap._new_tag()
1651 self._imap.send(out)
1659 self._imap.send(b" ")
1666 self._imap.send(out)
1668 self._imap.send(b"\r\n")
1670 return self._imap._command_complete(to_unicode(command), tag)
1677 self._imap.send(out)
1682 self._imap.send(out)
1685 while self._imap._get_response():
1686 tagged_resp = self._imap.tagged_commands.get(tag)
1694 self._imap.send(item)
1704 typ, data = self._imap.uid(command, *args)
1706 meth = getattr(self._imap, to_unicode(command))
1762 return self._imap.welcome