Skip to content

fix(gmail/calendar): ISO-2022-JP decoding, cc/bcc headers, calendar selection#131

Merged
steipete merged 7 commits intoopenclaw:mainfrom
salmonumbrella:fix/issue-126-iso-2022-jp
Feb 16, 2026
Merged

fix(gmail/calendar): ISO-2022-JP decoding, cc/bcc headers, calendar selection#131
steipete merged 7 commits intoopenclaw:mainfrom
salmonumbrella:fix/issue-126-iso-2022-jp

Conversation

@salmonumbrella
Copy link
Copy Markdown
Contributor

@salmonumbrella salmonumbrella commented Jan 28, 2026

Summary

Test plan

  • go test ./internal/cmd -run TestDecodeBodyCharset_ISO2022JP -count=1
  • go test ./internal/cmd -run TestGmailGetCmd_ -count=1
  • go test ./internal/cmd -run TestCalendarEventsCmd_CalendarsFlag -count=1
  • go test ./internal/cmd -run TestResolveCalendarIDs_ -count=1
  • Full test suite: go test ./...

🤖 Generated with Claude Code

@salmonumbrella salmonumbrella changed the title fix(gmail): decode ISO-2022-JP bodies feat(calendar): add selectors; fix(gmail): cc/bcc + ISO-2022-JP Jan 28, 2026
salmonumbrella and others added 2 commits January 28, 2026 10:50
Add tests for edge cases in ISO-2022-JP body decoding:
- Mixed ASCII and Japanese text (e.g., "Hello こんにちは World")
- Empty content with ISO-2022-JP charset header
- Malformed ISO-2022-JP sequences (graceful degradation)
- Truncated escape sequences

These tests verify the graceful fallback behavior in decodeBodyCharset
which returns original data if decoding fails.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When a calendar name doesn't match any known calendar (not in bySummary
or byID maps), return an error listing the unrecognized names instead
of treating them as raw calendar IDs which causes cryptic Google API
errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@salmonumbrella salmonumbrella changed the title feat(calendar): add selectors; fix(gmail): cc/bcc + ISO-2022-JP fix(gmail/calendar): ISO-2022-JP decoding, cc/bcc headers, calendar selection Jan 28, 2026
itsjeremyjohnson added a commit to Robben-Media/gogcli that referenced this pull request Feb 16, 2026
…lendar selection

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@steipete steipete merged commit 9977c0b into openclaw:main Feb 16, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed via temp merge of PR branch + main rebase path.

  • Gate: not run here (GitGuardian check pending in PR UI; no local full gate executed in this step)
  • Land commit: 9977c0b
  • Merge commit: 9977c0b

Thanks @salmonumbrella!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…election (openclaw#131)

* fix(gmail): decode ISO-2022-JP bodies

* fix(gmail): include cc/bcc in get output

* feat(calendar): allow selecting calendars in events

* test(gmail): add edge case tests for ISO-2022-JP decoding

Add tests for edge cases in ISO-2022-JP body decoding:
- Mixed ASCII and Japanese text (e.g., "Hello こんにちは World")
- Empty content with ISO-2022-JP charset header
- Malformed ISO-2022-JP sequences (graceful degradation)
- Truncated escape sequences

These tests verify the graceful fallback behavior in decodeBodyCharset
which returns original data if decoding fails.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(calendar): validate unknown calendar names in resolveCalendarIDs

When a calendar name doesn't match any known calendar (not in bySummary
or byID maps), return an error listing the unrecognized names instead
of treating them as raw calendar IDs which causes cryptic Google API
errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(calendar): validate unknown and ambiguous calendar name resolutions

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Multi-Calendar Selection for gog calendar events gmail get: ISO-2022-JP encoded emails show as garbled text (U+FFFD)

2 participants