From 13b4303d0981b90a8e41c65e62f40c44bf4072e0 Mon Sep 17 00:00:00 2001 From: pedro-pscunha <98980428+pedro-pscunha@users.noreply.github.com> Date: Thu, 19 Nov 2026 20:59:30 -0300 Subject: [PATCH 1/2] feat(gmail): preserve quotes with missing images in draft create and update Extend the existing draft-only placeholder policy to create and update with --quote. Keep the default strict, preserve valid inline resources, and report degradation for review. Co-Authored-By: Claude Code --- CHANGELOG.md | 2 + docs/gmail-workflows.md | 5 +- internal/cmd/gmail_drafts.go | 82 +++++++++++-------- internal/cmd/gmail_drafts_cmd_test.go | 2 +- internal/cmd/gmail_drafts_raw.go | 2 +- internal/cmd/gmail_inline_missing.go | 13 +++ .../cmd/gmail_inline_missing_command_test.go | 75 ++++++++++++++++- 7 files changed, 143 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a05732521..09b91f0df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.48.2 - Unreleased +- Gmail: extend `--missing-inline-images=placeholder` to `drafts create` and `drafts update` with `--quote`. Keep strict defaults and report draft degradation for review. + ## 0.48.1 - 2026-11-15 **Highlights:** Safer Gmail replies exclude every send-as alias, Calendar queries and recurring updates handle edge cases correctly, and Go security updates address GO-2026-6859. diff --git a/docs/gmail-workflows.md b/docs/gmail-workflows.md index 0394cbf44..9e49b4d76 100644 --- a/docs/gmail-workflows.md +++ b/docs/gmail-workflows.md @@ -473,8 +473,9 @@ gog --gmail-no-send gmail drafts reply --body "Thanks" \ --missing-inline-images=placeholder --json ``` -This policy is available only on `drafts reply` and `drafts reply-all`, and cannot -be combined with `--no-quote`. It preserves the remaining quoted HTML and valid +This policy is available on `drafts reply`, `drafts reply-all`, and on +`drafts create` and `drafts update` with `--quote`. It cannot be combined with +`--no-quote` or `--raw-file`. It preserves the remaining quoted HTML and valid inline resources. Placeholders include the missing Content-ID and image alt text; the plain alternative retains its original text plus corresponding markers, or is derived from the repaired HTML when no plain text exists. diff --git a/internal/cmd/gmail_drafts.go b/internal/cmd/gmail_drafts.go index 3c1d3026b..cfecd2601 100644 --- a/internal/cmd/gmail_drafts.go +++ b/internal/cmd/gmail_drafts.go @@ -309,6 +309,7 @@ type GmailDraftsCreateCmd struct { ReplyAll bool `name:"reply-all" help:"Auto-populate recipients from original message (requires --reply-to-message-id or --thread-id)"` ReplyTo string `name:"reply-to" help:"Reply-To header address"` Quote bool `name:"quote" help:"Include quoted original message in reply (requires --reply-to-message-id or --thread-id)"` + MissingInlineImages string `name:"missing-inline-images" enum:"error,placeholder" default:"error" help:"Missing quoted CID images with --quote: error or visible placeholders"` Attach []string `name:"attach" help:"Attachment file path (repeatable)"` From string `name:"from" help:"Send from this email address (must be a verified send-as alias)"` AutoFromAddressedAlias bool `name:"auto-from-addressed-alias" help:"When --from is omitted, reply from the verified send-as alias addressed by the original message" env:"GOG_GMAIL_AUTO_FROM_ADDRESSED_ALIAS"` @@ -341,7 +342,9 @@ type draftComposeInput struct { ReplyAll bool ReplyTo string Quote bool - Attach []string + // MissingInlineImages is the validated policy for quoted CID images with no MIME part. + MissingInlineImages string + Attach []string // PrebuiltAttachments carry already-resolved attachment bytes (e.g. existing // draft attachments preserved across an update) alongside any --attach paths. PrebuiltAttachments []mailmime.Attachment @@ -409,16 +412,16 @@ func (c *draftComposeInput) keepDraftRecipients(payload *gmail.MessagePart) { } } -func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, input draftComposeInput) (*gmail.Message, draftThreading, []mailmime.AttachmentMetadata, error) { +func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, input draftComposeInput) (*gmail.Message, draftThreading, []mailmime.AttachmentMetadata, []inlineImageWarning, error) { sendAs, sendAsErr := listSendAs(ctx, svc) from, err := resolveComposeFrom(ctx, svc, account, input.From, sendAs, sendAsErr) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } - info, err := fetchReplyInfo(ctx, svc, input.ReplyToMessageID, input.ReplyToThreadID, input.Quote, "") + info, err := fetchReplyInfo(ctx, svc, input.ReplyToMessageID, input.ReplyToThreadID, input.Quote, input.MissingInlineImages) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } body, htmlBody := input.Body, directedHTML(input.BodyHTML) replyContextSource := "" @@ -459,7 +462,7 @@ func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, // after the alias is picked, and add it before the quote so it stays above it. signature, err := input.requestedSignature(ctx, svc, from.sendingEmail) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } if htmlBody == "" && signature.htmlBlock() != "" { htmlBody = directedTextToHTML(strings.TrimSpace(body)) @@ -467,14 +470,14 @@ func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, body, htmlBody = appendComposeSignature(body, htmlBody, signature) body, htmlBody, err = applyReplyQuote(ctx, input.Quote, info, body, htmlBody) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } atts := attachmentsFromPaths(input.Attach) atts = append(atts, input.PrebuiltAttachments...) atts = append(atts, info.InlineResources...) atts, attachmentMetadata, err := mailmime.PrepareAttachments(atts, os.ReadFile) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } subject := input.Subject if strings.TrimSpace(subject) == "" { @@ -483,7 +486,7 @@ func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, toRecipients, ccRecipients, bccRecipients, err := parseComposeRecipients(input.To, input.Cc, input.Bcc) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } // A kept-existing To (update without --to) was resolved leniently by // keptDraftRecipients; input.To is empty then, so the parse above yields @@ -508,7 +511,7 @@ func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, nil, ) if recipientErr != nil { - return nil, draftThreading{}, nil, recipientErr + return nil, draftThreading{}, nil, nil, recipientErr } // --reply-all auto-populates from the original message, but an explicit // flag (parsed above) overrides the corresponding auto-populated field. @@ -537,10 +540,10 @@ func buildDraftMessage(ctx context.Context, svc *gmail.Service, account string, Bcc: bccRecipients, }, true) if err != nil { - return nil, draftThreading{}, nil, err + return nil, draftThreading{}, nil, nil, err } - return msg, threading, attachmentMetadata, nil + return msg, threading, attachmentMetadata, info.InlineImageWarnings, nil } // draftHasHTMLBodyPart reports whether a draft message's stored payload carries @@ -825,6 +828,10 @@ func (c *GmailDraftsCreateCmd) Run(ctx context.Context, flags *RootFlags) error if c.Quote && replyToMessageID == "" && threadID == "" { return usage("--quote requires --reply-to-message-id or --thread-id") } + missingInlineImages, err := validateDraftMissingInlineImages(c.MissingInlineImages, c.Quote) + if err != nil { + return err + } attachPaths, err := expandComposeAttachmentPaths(c.Attach) if err != nil { @@ -843,6 +850,7 @@ func (c *GmailDraftsCreateCmd) Run(ctx context.Context, flags *RootFlags) error ReplyAll: c.ReplyAll, ReplyTo: c.ReplyTo, Quote: c.Quote, + MissingInlineImages: missingInlineImages, Attach: attachPaths, From: c.From, AutoFromAddressedAlias: c.AutoFromAddressedAlias, @@ -873,6 +881,7 @@ func (c *GmailDraftsCreateCmd) Run(ctx context.Context, flags *RootFlags) error "reply_all": input.ReplyAll, "reply_to": strings.TrimSpace(input.ReplyTo), "quote": input.Quote, + "missing_inline_images": input.MissingInlineImages, "from": strings.TrimSpace(input.From), "auto_from_addressed_alias": input.AutoFromAddressedAlias, "attachments": attachPaths, @@ -888,7 +897,7 @@ func (c *GmailDraftsCreateCmd) Run(ctx context.Context, flags *RootFlags) error return err } - msg, threading, attachmentMetadata, err := buildDraftMessage(ctx, svc, account, input) + msg, threading, attachmentMetadata, warnings, err := buildDraftMessage(ctx, svc, account, input) if err != nil { return err } @@ -897,27 +906,28 @@ func (c *GmailDraftsCreateCmd) Run(ctx context.Context, flags *RootFlags) error if err != nil { return err } - return writeDraftResult(ctx, u, draft, threading, attachmentMetadata, nil) + return writeDraftResult(ctx, u, draft, threading, attachmentMetadata, warnings) } type GmailDraftsUpdateCmd struct { - DraftID string `arg:"" name:"draftId" help:"Draft ID"` - RawFile string `name:"raw-file" help:"Replace the entire draft with an exact RFC822 message file, or '-' for stdin (cannot be combined with compose flags)"` - To *string `name:"to" help:"Recipients (comma-separated; omit to keep existing)"` - Cc string `name:"cc" help:"CC recipients (comma-separated; omit to keep existing, empty to clear)"` - Bcc string `name:"bcc" help:"BCC recipients (comma-separated; omit to keep existing, empty to clear)"` - Subject string `name:"subject" help:"Subject (required)"` - Body string `name:"body" help:"Body (plain text; required unless --body-html is set)"` - BodyFile string `name:"body-file" help:"Body file path (plain text; '-' for stdin)"` - BodyHTML string `name:"body-html" help:"Body (HTML; optional)"` - BodyHTMLFile string `name:"body-html-file" help:"HTML body file path ('-' for stdin)"` - ReplyToMessageID string `name:"reply-to-message-id" help:"Reply to Gmail message ID (sets In-Reply-To/References and thread)"` - ThreadID string `name:"thread-id" help:"Reply within a Gmail thread (raw mode sets only the thread ID); overrides the draft's existing thread"` - ReplyAll bool `name:"reply-all" help:"Auto-populate recipients from original message (requires --reply-to-message-id or --thread-id)"` - ReplyTo string `name:"reply-to" help:"Reply-To header address"` - Quote bool `name:"quote" help:"Include quoted original message in reply"` - Attach []string `name:"attach" help:"Attachment file path (repeatable). Replaces existing attachments; omit to preserve them, or use --clear-attachments to remove all."` - ClearAttachments bool `name:"clear-attachments" help:"Remove all attachments from the draft. By default, omitting --attach preserves the draft's existing attachments."` + DraftID string `arg:"" name:"draftId" help:"Draft ID"` + RawFile string `name:"raw-file" help:"Replace the entire draft with an exact RFC822 message file, or '-' for stdin (cannot be combined with compose flags)"` + To *string `name:"to" help:"Recipients (comma-separated; omit to keep existing)"` + Cc string `name:"cc" help:"CC recipients (comma-separated; omit to keep existing, empty to clear)"` + Bcc string `name:"bcc" help:"BCC recipients (comma-separated; omit to keep existing, empty to clear)"` + Subject string `name:"subject" help:"Subject (required)"` + Body string `name:"body" help:"Body (plain text; required unless --body-html is set)"` + BodyFile string `name:"body-file" help:"Body file path (plain text; '-' for stdin)"` + BodyHTML string `name:"body-html" help:"Body (HTML; optional)"` + BodyHTMLFile string `name:"body-html-file" help:"HTML body file path ('-' for stdin)"` + ReplyToMessageID string `name:"reply-to-message-id" help:"Reply to Gmail message ID (sets In-Reply-To/References and thread)"` + ThreadID string `name:"thread-id" help:"Reply within a Gmail thread (raw mode sets only the thread ID); overrides the draft's existing thread"` + ReplyAll bool `name:"reply-all" help:"Auto-populate recipients from original message (requires --reply-to-message-id or --thread-id)"` + ReplyTo string `name:"reply-to" help:"Reply-To header address"` + Quote bool `name:"quote" help:"Include quoted original message in reply"` + MissingInlineImages string `name:"missing-inline-images" enum:"error,placeholder" default:"error" help:"Missing quoted CID images with --quote: error or visible placeholders"` + Attach []string `name:"attach" help:"Attachment file path (repeatable). Replaces existing attachments; omit to preserve them, or use --clear-attachments to remove all."` + ClearAttachments bool `name:"clear-attachments" help:"Remove all attachments from the draft. By default, omitting --attach preserves the draft's existing attachments."` //nolint:lll // flag help text ClearReplyContext bool `name:"clear-reply-context" help:"Strip In-Reply-To/References from the draft, making it a standalone message. By default an update preserves the draft's existing reply headers."` From string `name:"from" help:"Send from this email address (must be a verified send-as alias)"` @@ -964,6 +974,10 @@ func (c *GmailDraftsUpdateCmd) runCompose(ctx context.Context, flags *RootFlags) if c.ClearReplyContext && (replyToMessageID != "" || threadID != "" || c.Quote) { return usage("use only one of --clear-reply-context or --reply-to-message-id/--thread-id/--quote") } + missingInlineImages, err := validateDraftMissingInlineImages(c.MissingInlineImages, c.Quote) + if err != nil { + return err + } attachPaths, err := expandComposeAttachmentPaths(c.Attach) if err != nil { @@ -992,6 +1006,7 @@ func (c *GmailDraftsUpdateCmd) runCompose(ctx context.Context, flags *RootFlags) ReplyAll: c.ReplyAll, ReplyTo: c.ReplyTo, Quote: c.Quote, + MissingInlineImages: missingInlineImages, Attach: attachPaths, From: c.From, AutoFromAddressedAlias: c.AutoFromAddressedAlias, @@ -1027,6 +1042,7 @@ func (c *GmailDraftsUpdateCmd) runCompose(ctx context.Context, flags *RootFlags) "reply_all": input.ReplyAll, "reply_to": strings.TrimSpace(input.ReplyTo), "quote": input.Quote, + "missing_inline_images": input.MissingInlineImages, "from": strings.TrimSpace(input.From), "auto_from_addressed_alias": input.AutoFromAddressedAlias, "attachments": attachPaths, @@ -1137,7 +1153,7 @@ func (c *GmailDraftsUpdateCmd) runCompose(ctx context.Context, flags *RootFlags) input.InReplyTo = carriedInReplyTo input.References = carriedReferences - msg, threading, attachmentMetadata, err := buildDraftMessage(ctx, svc, account, input) + msg, threading, attachmentMetadata, warnings, err := buildDraftMessage(ctx, svc, account, input) if err != nil { return err } @@ -1146,5 +1162,5 @@ func (c *GmailDraftsUpdateCmd) runCompose(ctx context.Context, flags *RootFlags) if err != nil { return err } - return writeDraftResult(ctx, u, draft, threading, attachmentMetadata, nil) + return writeDraftResult(ctx, u, draft, threading, attachmentMetadata, warnings) } diff --git a/internal/cmd/gmail_drafts_cmd_test.go b/internal/cmd/gmail_drafts_cmd_test.go index 126cf70a6..c2818e350 100644 --- a/internal/cmd/gmail_drafts_cmd_test.go +++ b/internal/cmd/gmail_drafts_cmd_test.go @@ -1891,7 +1891,7 @@ func TestBuildDraftMessageAutoSelectsFromAddressedAliasOnlyWhenRequested(t *test {name: "opt in", autoSelect: true, wantFrom: "alias@example.com"}, } { t.Run(tc.name, func(t *testing.T) { - msg, _, _, err := buildDraftMessage(context.Background(), svc, "me@example.com", draftComposeInput{ + msg, _, _, _, err := buildDraftMessage(context.Background(), svc, "me@example.com", draftComposeInput{ Body: "Thanks", ReplyToMessageID: "m1", AutoFromAddressedAlias: tc.autoSelect, diff --git a/internal/cmd/gmail_drafts_raw.go b/internal/cmd/gmail_drafts_raw.go index 4aced4a1c..024868453 100644 --- a/internal/cmd/gmail_drafts_raw.go +++ b/internal/cmd/gmail_drafts_raw.go @@ -34,7 +34,7 @@ func validateRawDraftFlagPresence(kctx *kong.Context, source string) error { } for _, flag := range []string{ "to", "cc", "bcc", "subject", "body", "body-file", "body-html", "body-html-file", - "attach", "from", "reply-to", "reply-to-message-id", "signature-from", "signature-file", + "attach", "from", "reply-to", "reply-to-message-id", "signature-from", "signature-file", "missing-inline-images", } { if flagProvided(kctx, flag) { return usagef("--raw-file cannot be combined with --%s", flag) diff --git a/internal/cmd/gmail_inline_missing.go b/internal/cmd/gmail_inline_missing.go index 4974725a1..0c9f2d234 100644 --- a/internal/cmd/gmail_inline_missing.go +++ b/internal/cmd/gmail_inline_missing.go @@ -39,6 +39,19 @@ func validateMissingInlineImagesPolicy(policy string, noQuote bool) (string, err } } +// validateDraftMissingInlineImages checks the policy for drafts create/update, +// where the quote is opt-in (--quote) instead of the default. +func validateDraftMissingInlineImages(policy string, quote bool) (string, error) { + policy, err := validateMissingInlineImagesPolicy(policy, false) + if err != nil { + return "", err + } + if policy == missingInlineImagesPlaceholder && !quote { + return "", usage("--missing-inline-images=placeholder requires --quote") + } + return policy, nil +} + func prepareReplyInlineResources(ctx context.Context, svc *gmail.Service, msg *gmail.Message, info *replyInfo, policy string) error { if policy != missingInlineImagesPlaceholder { resources, err := preserveReferencedInlineResources(ctx, svc, msg.Id, msg.Payload, info.BodyHTML) diff --git a/internal/cmd/gmail_inline_missing_command_test.go b/internal/cmd/gmail_inline_missing_command_test.go index 1db0e2303..b298b176f 100644 --- a/internal/cmd/gmail_inline_missing_command_test.go +++ b/internal/cmd/gmail_inline_missing_command_test.go @@ -57,7 +57,8 @@ func executeInlineDraftFixture(t *testing.T, fixture inlineDraftFixture, args .. return } _ = json.NewEncoder(w).Encode(map[string]any{"data": base64.RawURLEncoding.EncodeToString([]byte("png-data"))}) - case r.Method == http.MethodPost && r.URL.Path == "/gmail/v1/users/me/drafts": + case (r.Method == http.MethodPost && r.URL.Path == "/gmail/v1/users/me/drafts") || + (r.Method == http.MethodPut && r.URL.Path == "/gmail/v1/users/me/drafts/draft-1"): posts.Add(1) var draft gmail.Draft if err := json.NewDecoder(r.Body).Decode(&draft); err != nil || draft.Message == nil { @@ -221,3 +222,75 @@ func TestMissingInlineDraftPolicyIsOfflineAndDraftOnly(t *testing.T) { } } } + +func TestMissingInlineDraftCreateAndUpdateWithQuote(t *testing.T) { + cases := map[string][]string{ + "update": {"gmail", "drafts", "update", "draft-1", "--to", "alice@example.com", "--cc", "", "--bcc", "", "--subject", "Re: Project update", "--body", "Thanks", "--reply-to-message-id", "msg-1", "--quote", "--clear-attachments"}, + "create": {"gmail", "drafts", "create", "--to", "alice@example.com", "--subject", "Re: Project update", "--body", "Thanks", "--reply-to-message-id", "msg-1", "--quote"}, + } + for name, base := range cases { + t.Run(name+"/placeholder", func(t *testing.T) { + args := append(append([]string{}, base...), "--missing-inline-images=placeholder") + result, draft, calls := executeInlineDraftFixture(t, newInlineDraftFixture(missingInlineTestHTML), args...) + if result.err != nil || draft == nil || calls.posts != 1 { + t.Fatalf("error=%v, calls=%+v, stderr=%q", result.err, calls, result.stderr) + } + if !strings.Contains(result.stdout, `"degraded": true`) || !strings.Contains(result.stdout, `"missing_inline_image"`) || !strings.Contains(result.stderr, "review before sending") { + t.Fatalf("missing degradation report: stdout=%q stderr=%q", result.stdout, result.stderr) + } + raw, err := base64.RawURLEncoding.DecodeString(draft.Raw) + if err != nil { + t.Fatal(err) + } + message, err := parseBackupEmail(raw) + if err != nil { + t.Fatal(err) + } + if strings.Contains(message.HTMLBody, "cid:missing@example.com") || !strings.Contains(message.HTMLBody, "[Inline image unavailable:") { + t.Fatalf("placeholder missing: %q", message.HTMLBody) + } + }) + t.Run(name+"/default stays strict", func(t *testing.T) { + result, draft, calls := executeInlineDraftFixture(t, newInlineDraftFixture(missingInlineTestHTML), base...) + if result.err == nil || !strings.Contains(result.stderr, "no matching MIME part") || draft != nil || calls.posts != 0 { + t.Fatalf("error=%v, calls=%+v, stderr=%q", result.err, calls, result.stderr) + } + }) + } +} + +func TestMissingInlineDraftCreateUpdatePlaceholderNeedsQuote(t *testing.T) { + for _, args := range [][]string{ + {"gmail", "drafts", "create", "--to", "a@example.com", "--subject", "S", "--body", "B", "--missing-inline-images=placeholder"}, + {"gmail", "drafts", "update", "draft-1", "--to", "a@example.com", "--subject", "S", "--body", "B", "--missing-inline-images=placeholder"}, + } { + result := executeWithTestRuntime(t, append([]string{"--dry-run"}, args...), nil) + if ExitCode(result.err) != 2 || !strings.Contains(result.stderr, "requires --quote") { + t.Fatalf("placeholder without --quote accepted: %v; stderr=%q", result.err, result.stderr) + } + } +} + +func TestMissingInlineDraftCreateUpdateDryRunReportsPolicy(t *testing.T) { + for _, base := range [][]string{ + {"gmail", "drafts", "create"}, + {"gmail", "drafts", "update", "draft-1"}, + } { + args := append([]string{"--json", "--dry-run"}, base...) + args = append(args, "--body", "Reply", "--reply-to-message-id", "msg-1", "--quote", "--missing-inline-images=placeholder") + result := executeWithTestRuntime(t, args, nil) + if result.err != nil || !strings.Contains(result.stdout, `"missing_inline_images": "placeholder"`) { + t.Fatalf("dry-run: error=%v stdout=%q stderr=%q", result.err, result.stdout, result.stderr) + } + } +} + +func TestMissingInlineDraftRawModeRejectsPolicy(t *testing.T) { + for _, operation := range []string{"create", "update"} { + args := append(rawDraftArgs(operation, "-"), "--missing-inline-images=placeholder") + result := executeWithTestRuntime(t, args, nil) + if ExitCode(result.err) != 2 || !strings.Contains(result.stderr, "--raw-file cannot be combined with --missing-inline-images") { + t.Fatalf("raw policy accepted: error=%v stderr=%q", result.err, result.stderr) + } + } +} From bc0f6b3f466980ea952a23d7f7b17b73f32c5497 Mon Sep 17 00:00:00 2001 From: pedro-pscunha <98980428+pedro-pscunha@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:02:55 -0300 Subject: [PATCH 2/2] docs: link the quoted draft image change to its pull request Add the PR reference and contributor credit to the Unreleased entry. Co-Authored-By: Claude Code --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09b91f0df..6910be74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 0.48.2 - Unreleased -- Gmail: extend `--missing-inline-images=placeholder` to `drafts create` and `drafts update` with `--quote`. Keep strict defaults and report draft degradation for review. +- Gmail: extend `--missing-inline-images=placeholder` to `drafts create` and `drafts update` with `--quote`. Keep strict defaults and report draft degradation for review. (#1342) — thanks @pedro-pscunha. ## 0.48.1 - 2026-11-15