-
Notifications
You must be signed in to change notification settings - Fork 656
gmail: make read-body truncation discoverable (align --full help; point truncation markers at --full) #807
Copy link
Copy link
Closed
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Description
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Type
Fields
Priority
None yet
Summary
Default text output truncates message bodies, but the remedy (
--full) is under-advertised and thetwo read paths are inconsistent, so users/agents routinely don't realize output was cut.
Details (v0.22.0, 197992a)
gmail thread gettruncates each body at 500 chars and appends... [truncated](
internal/cmd/gmail_thread.go:165-166) but doesn't say how to get the full body; its--fullhelp is just "Show full message bodies".
gmail messages search --include-bodytruncates at 200 chars with a bare...(
internal/cmd/gmail_messages.go:339,341,truncateRunes), with no[truncated]marker at all.Its
--fullhelp is better: "Show full message bodies without truncation (implies --include-body)".--fullflag, weaker help onthread get; the markers differ and neither names the fix.Suggested fix
thread get --fullhelp with themessages searchwording ("...without truncation").... [truncated; use --full or --json].thread get/gethelp that default text truncates while--jsonis complete.Environment
gog v0.22.0 (confirmed by reading source at
197992a).