MCPcopy Index your code
hub / github.com/RustPython/RustPython / search

Method search

Lib/imaplib.py:825–840  ·  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

823
824
825 def search(self, charset, *criteria):
826 """Search mailbox for matching messages.
827
828 (typ, [data]) = <instance>.search(charset, criterion, ...)
829
830 'data' is space separated list of matching message numbers.
831 If UTF8 is enabled, charset MUST be None.
832 """
833 name = 'SEARCH'
834 if charset:
835 if self.utf8_enabled:
836 raise IMAP4.error("Non-None charset not valid in UTF8 mode")
837 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
838 else:
839 typ, dat = self._simple_command(name, *criteria)
840 return self._untagged_response(typ, dat, name)
841
842
843 def select(self, mailbox='INBOX', readonly=False):

Callers 15

_get_system_versionFunction · 0.45
compile_fileFunction · 0.45
_escapeFunction · 0.45
markupMethod · 0.45
parse227Function · 0.45
has_magicFunction · 0.45
selectorMethod · 0.45
literal_selectorMethod · 0.45
parse_marked_sectionMethod · 0.45

Calls 3

_simple_commandMethod · 0.95
_untagged_responseMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected