Skip to content

hey search --from should match hey compose --from (send-as aliases) #470

Description

@heredia21

Context

hey compose --from accepts a configured sender from hey account senders (custom domain / send-as). hey search --from with that same address typically returns zero threads, even though those messages exist and can be found with hey search --to <recipient>.

Search appears to index the HEY account identity as creator / from, not the envelope From used at send time. So the flag that is documented as “Sender name or email address” does not mean the same thing as compose --from.

#454 is about connecting new SMTP send-as addresses. This is about finding mail already sent with a configured sender.

No account-specific details below.

Ask

  1. Treat hey search --from as matching envelope From (the send-as address), the account identity, or both — and document which.
  2. If both stay distinct, add a flag (--sender / --from-alias) that matches hey account senders the same way compose does.
  3. When --from is a configured sender and the index only has the account identity, prefer a clear empty-result hint over a silent zero.

Why it matters

Any workflow that sends as a public / custom-domain address cannot later query “mail I sent as that address” without knowing every recipient. Combined with a sent listing and a compose receipt, --from would be enough to pull one campaign’s outbound in one command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions