MCPcopy Create free account
hub / github.com/chatmail/core / get_matching

Method get_matching

python/src/deltachat/events.py:116–120  ·  view source on GitHub ↗
(self, event_name_regex, check_error=True, timeout=None)

Source from the content-addressed store, hash-verified

114 yield self.get(timeout=timeout, check_error=check_error)
115
116 def get_matching(self, event_name_regex, check_error=True, timeout=None):
117 rex = re.compile(f"^(?:{event_name_regex})$")
118 for ev in self.iter_events(timeout=timeout, check_error=check_error):
119 if rex.match(ev.name):
120 return ev
121
122 def get_info_contains(self, regex: str) -> FFIEvent:
123 rex = re.compile(regex)

Calls 1

iter_eventsMethod · 0.95