Skip to content

Your lightweight open-source personal agent.

docs(email): clarify _fetch_new_messages return docstring

Flávio Veloso Soaresb96ed1b7c66f
diff --git a/nanobot/channels/email.py b/nanobot/channels/email.py
index 611fdb357..b5c8413d5 100644
--- a/nanobot/channels/email.py
+++ b/nanobot/channels/email.py
@@ -349,7 +349,7 @@ class EmailChannel(BaseChannel):
smtp.send_message(msg)
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(
search_criteria=("UNSEEN",),
mark_seen=self.config.mark_seen,