fix: correct westsidebasktball email typo in KNOWN_ACCOUNTS #10
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/gmail-mcp#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Standalone — discovered during session setup for
draneylucas@gmail.comOAuth. Pre-existing local drift in~/gmail-mcp/src/gmail_mcp/accounts.pyaddedwestsidebasketballtoKNOWN_ACCOUNTSbut never committed, and the drift mapped to a non-existent email address.Repo
forgejo_admin/gmail-mcpWhat Broke
Two coupled defects in
src/gmail_mcp/accounts.py:KNOWN_ACCOUNTS:westsidebasketballalias is missing from the committed upstream dict (only present as local uncommitted drift on the main-session machine).westsidebasketball@gmail.com— an address that does not exist. The real account iswestsidebasktball@gmail.com(noeinbasketball) — a Gmail-side typo documented insop-gmail-oauth.As a result,
resolve_account("westsidebasktball@gmail.com")(the real email) does not match any value inKNOWN_ACCOUNTSand falls through the unknown-alias passthrough ataccounts.py:42-43, attempting to loadgmail-westsidebasktball@gmail.com.json— a stale token file that used to exist on disk. Silent wrong-token resolution hazard.Repro Steps
forgejo_admin/gmail-mcp(avoids local drift).resolve_account("westsidebasktball@gmail.com")."westsidebasktball@gmail.com"— treated as a custom alias — rather than resolving to"westsidebasketball".SECRETS_DIR / "gmail-westsidebasktball@gmail.com.json".Expected Behavior
resolve_account("westsidebasketball")→"westsidebasketball"(alias match)resolve_account("westsidebasktball@gmail.com")→"westsidebasketball"(email reverse-lookup hits)resolve_account("westsidebasketball@gmail.com")→ literal passthrough (no match — intended; that address doesn't exist)Environment
forgejo_admin/gmail-mcp@a05df92(main HEAD)src/gmail_mcp/accounts.py:7-12gmail-mcpserver (stdio MCP),SECRETS_DIR=~/secrets/google-oauthsop-gmail-oauth(documents the Gmail typo)Acceptance Criteria
KNOWN_ACCOUNTScontains"westsidebasketball": "westsidebasktball@gmail.com"(committed to main)account=resolves to thewestsidebasketballaliasaccount="westsidebasketball"gmail-westsidebasketball.json)~/secrets/google-oauth/archive/(done out-of-band)Related
pal-e-platform— projectsop-gmail-oauth— documents the typo and token management#7(reauth tools),#5(CI)