Skip to content

feat: auto-prefix bare email recipients with user:#160

Closed
scion-gteam[bot] wants to merge 1 commit into
mainfrom
fix/bare-email-recipient-auto-prefix
Closed

feat: auto-prefix bare email recipients with user:#160
scion-gteam[bot] wants to merge 1 commit into
mainfrom
fix/bare-email-recipient-auto-prefix

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented Jun 6, 2026

Summary

  • Auto-resolve bare email addresses as user recipients in scion message instead of returning an error
  • scion message someone@example.com "hello" now works the same as scion message user:someone@example.com "hello"
  • Aligns single-recipient behavior with classifyRecipient() which already handles bare emails in set[] groups

Fixes #159

Test plan

  • TestBareEmailRecipientAutoPrefix — bare emails (with and without subdomain) are accepted without user: prefix
  • Prefixed form user:email@example.com continues to work
  • All existing cmd/ and pkg/messages/ tests pass

Instead of returning an error when a bare email address (without the
"user:" prefix) is passed as a recipient to `scion message`, auto-resolve
it as a user recipient by internally prepending "user:". This matches
the existing behavior of classifyRecipient() for group (set[]) recipients.

Fixes #159
@ptone
Copy link
Copy Markdown
Owner

ptone commented Jun 7, 2026

Merged upstream — PR GoogleCloudPlatform#335

@ptone ptone closed this Jun 7, 2026
@scion-gteam scion-gteam Bot deleted the fix/bare-email-recipient-auto-prefix branch June 7, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: make user:/agent: prefix optional when messaging by email address

1 participant