Skip to content

gmail search: resolve a contact's addresses into an OR query #657

Description

@chrischall

Version

v0.19.0 (b25a3c0)

Summary

Searching "mail from this person" is awkward when a contact has multiple addresses
(personal + work). Today you must hand-write from:([email protected] OR [email protected]). A bare token
like from:alison relies on Gmail's own name/address heuristics and matches
inconsistently versus the fully-qualified addresses.

Since gogcli already has gog contacts search/list (People API) exposing a contact's
emails, a convenience that expands a contact into an OR'd address query would be valuable.

Possible shapes

  • A gog gmail search flag, e.g. --from-contact "Alison Hall", that resolves the
    contact's addresses and ORs them into the from:(…) clause; or
  • A documented recipe in gmail search --help showing the contacts → OR-query pattern.

Note

This is a cross-surface convenience (contacts → gmail). If it's out of scope for the
gmail command, a short doc cross-reference would still help.


Filed from usage of the gogcli-mcp wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions