MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / search

Method search

tools/python-3.11.9-amd64/Lib/imaplib.py:720–735  ·  view source on GitHub ↗

Search mailbox for matching messages. (typ, [data]) = .search(charset, criterion, ...) 'data' is space separated list of matching message numbers. If UTF8 is enabled, charset MUST be None.

(self, charset, *criteria)

Source from the content-addressed store, hash-verified

718
719
720 def search(self, charset, *criteria):
721 """Search mailbox for matching messages.
722
723 (typ, [data]) = <instance>.search(charset, criterion, ...)
724
725 'data' is space separated list of matching message numbers.
726 If UTF8 is enabled, charset MUST be None.
727 """
728 name = 'SEARCH'
729 if charset:
730 if self.utf8_enabled:
731 raise IMAP4.error("Non-None charset not valid in UTF8 mode")
732 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
733 else:
734 typ, dat = self._simple_command(name, *criteria)
735 return self._untagged_response(typ, dat, name)
736
737
738 def select(self, mailbox='INBOX', readonly=False):

Callers 15

_getdescriptionsMethod · 0.45
_get_system_versionFunction · 0.45
compile_fileFunction · 0.45
_escapeFunction · 0.45
markupMethod · 0.45
expectMethod · 0.45
b16decodeFunction · 0.45
_proc_paxMethod · 0.45
appendMethod · 0.45
prependMethod · 0.45

Calls 3

_simple_commandMethod · 0.95
_untagged_responseMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected