mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-06-15 07:14:08 +00:00
docs(email): clarify _fetch_new_messages return docstring
This commit is contained in:
parent
4369eb20fc
commit
b96ed1b7c6
@ -349,7 +349,7 @@ class EmailChannel(BaseChannel):
|
|||||||
smtp.send_message(msg)
|
smtp.send_message(msg)
|
||||||
|
|
||||||
def _fetch_new_messages(self) -> tuple[list[dict[str, Any]], set[str]]:
|
def _fetch_new_messages(self) -> tuple[list[dict[str, Any]], set[str]]:
|
||||||
"""Poll IMAP and return parsed unread messages."""
|
"""Poll IMAP and return parsed unread messages plus skipped message UIDs."""
|
||||||
return self._fetch_messages(
|
return self._fetch_messages(
|
||||||
search_criteria=("UNSEEN",),
|
search_criteria=("UNSEEN",),
|
||||||
mark_seen=self.config.mark_seen,
|
mark_seen=self.config.mark_seen,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user