Skip to content

fix: handle Gmail header casing#34830

Closed
donovan-yohan wants to merge 3 commits into
NousResearch:mainfrom
donovan-yohan:fix/issue-34806-gmail-header-case-v2
Closed

fix: handle Gmail header casing#34830
donovan-yohan wants to merge 3 commits into
NousResearch:mainfrom
donovan-yohan:fix/issue-34806-gmail-header-case-v2

Conversation

@donovan-yohan

Copy link
Copy Markdown
Contributor

Summary

  • Normalize Gmail API message header names to lowercase before lookup so gmail search, gmail get, and gmail reply handle Gmail-returned header casing consistently.
  • Emit conventional MIME header casing (To, Subject, Cc, From) when sending/replying.
  • Add regression coverage for lowercase and canonical Gmail headers plus MIME send casing.

Fixes #34806

Validation

  • venv/bin/python -m pytest tests/skills/test_google_workspace_api.py::test_api_gmail_get_reads_headers_case_insensitively -q -o 'addopts=' (red before fix: failed on empty from)
  • /home/donovanyohan/.hermes/hermes-agent/venv/bin/python -m pytest tests/skills/test_google_workspace_api.py tests/skills/test_google_workspace_credential_files.py -q -o 'addopts='
  • git diff --check -- skills/productivity/google-workspace/scripts/google_api.py tests/skills/test_google_workspace_api.py

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) labels May 29, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via #35254 — your commits were cherry-picked onto current main with your authorship preserved in git log (commit 8bd0060, author Donovan Yohan). The fix and your regression tests landed as-is. Thanks for the clean, complete patch!

@teknium1 teknium1 closed this May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: google-workspace Gmail wrapper loses To/Subject due to case-sensitive header handling

3 participants