Courrier v1.8 (tt-2026-11-071) : recherche plein texte dans tout le miroir, periode, filtre pieces jointes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGaEeWkqZYNP6Wn3mGQsrL
This commit is contained in:
gemini-opsandClaude Sonnet 5.5 committed 2026-11-18 00:03:29 +01:00
1 parent 44bfbc3a0c
commit 9db68e70f3
6 files changed
+178 -12

No files matched your search

+9
View File
@@ -290,6 +290,15 @@ class MirrorClient:
res = self.call_tool("mirror_mail_latest", {"folder": "Messages envoyés", "n": min(n, self.MIRROR_MAX_LATEST), "inclure_exclus": False})
return [self._norm(m) for m in self._liste(res)]
def rechercher(self, q: str, since: Optional[str] = None, until: Optional[str] = None, n: int = 100) -> List[Dict[str, Any]]:
"""Recherche plein texte du miroir (mirror_mail_search), tous dossiers, mails bruts."""
args: Dict[str, Any] = {"q": q, "n": min(n, self.MIRROR_MAX_LATEST), "inclure_exclus": False}
if since:
args["since"] = since
if until:
args["until"] = until
return self._liste(self.call_tool("mirror_mail_search", args))
def get_attachment(self, message_id: str, filename: str) -> Dict[str, Any]:
"""Pièce jointe d'un mail (mirror_mail_attachment), jamais mise en cache (contenu volumineux)."""
res = self.call_tool("mirror_mail_attachment", {"message_id": message_id, "filename": filename}, use_cache=False)