Commit Graph

7 Commits

Author SHA1 Message Date
salmonumbrella
524f198d3d
feat(gmail): add --full to thread get
- Add --full to show complete thread message bodies\n- Default output truncates previews (500 runes) with a hint\n\nThanks @salmonumbrella.
2026-01-07 18:49:53 +00:00
salmonumbrella
0866dae212 fix(gmail): improve thread display with message count and HTML stripping
- Add message count header ("Thread contains N message(s)") so users
  know upfront how many messages to expect
- Add clear message separators with position (=== Message 1/8: id ===)
- Strip HTML <script> and <style> blocks before removing tags
- Use rune-based truncation to avoid breaking multi-byte UTF-8 chars
- Truncate long message bodies to 500 chars for cleaner output
- Add comprehensive unit tests for stripHTMLTags function

Fixes issue where threads with many messages or HTML content would
produce overwhelming output that could get truncated.
2026-01-03 13:02:59 +01:00
Alex Hillman
804db7e5b6 Add thread modify command for batch label operations
This adds a new `gmail thread modify` subcommand that uses the Gmail API's
Threads.Modify endpoint to apply label changes to all messages in a thread
at once.

Usage:
  gog gmail thread modify <threadId> --add "Label1,Label2" --remove "Label3"

Features:
- Resolves label names to IDs automatically
- Supports both adding and removing labels in a single operation
- JSON output mode for programmatic use

BREAKING CHANGE: The `gmail thread` command is now a parent command with
subcommands. Use `gmail thread get <id>` instead of `gmail thread <id>`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:09:26 +01:00
Peter Steinberger
f158aa7ebf fix(gmail): thread attachment downloads 2025-12-26 21:34:08 +01:00
Peter Steinberger
18f2a9fd4f feat(cli)!: switch to --json/--plain 2025-12-26 10:15:12 +00:00
Peter Steinberger
2ca93e9a9f test: fix CI flake from shared config dir 2025-12-17 22:13:23 +01:00
Peter Steinberger
98fc2225e7 test: raise coverage above 75% 2025-12-17 21:53:52 +01:00