MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _cache_mailbox

Method _cache_mailbox

src/services/web2_mail.py:60–66  ·  view source on GitHub ↗
(self, mailbox: Dict[str, Any])

Source from the content-addressed store, hash-verified

58 return headers
59
60 def _cache_mailbox(self, mailbox: Dict[str, Any]) -> None:
61 email = str(mailbox.get("email") or mailbox.get("address") or "").strip().lower()
62 token = str(mailbox.get("token") or mailbox.get("service_id") or "").strip()
63 if email:
64 self._mailboxes_by_email[email] = mailbox
65 if token:
66 self._mailboxes_by_token[token] = mailbox
67
68 def _pick_first_value(self, payload: Dict[str, Any], *keys: str) -> str:
69 for key in keys:

Callers 1

create_emailMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected