Skip to content

feat(direct-send): name a direct email's limits, and print whether a sent email bounced - #40

Merged
ArtemKosolap merged 7 commits into
mainfrom
dev/REPLY-54421-email-limits-bounces
Nov 21, 2026
Merged

ArtemKosolap merged 7 commits into
mainfrom
dev/REPLY-54421-email-limits-bounces

Conversation

@ArtemKosolap

Copy link
Copy Markdown
Contributor

What changed

contact send-email now names Reply's refusals of a direct email on its limits, instead of folding them into generic codes:

  • 429 contact.dailyLimitReached and 429 contact.activeContactsLimitReached are one code, email.limit_reached. It has the same shape as linkedin.limit_reached: details.limit is daily or active_contacts, Reply's Retry-After is passed on as retry_after, and reply_code is kept verbatim. Both were rate_limited before.
  • 403 contact.emailAccountSendingDisabled is email.sending_disabled. It is answered for a mailbox whose daily limit is 0, or a team whose plan does not send. It has no retry_after, and its sentence says that the mailbox or the team cannot send. It was access.denied before, which read as a sign-in problem.
  • contact.activeContactsLimitReached joins the codes the transport never resends, like the daily and weekly limits: no wait inside one call clears it.
  • 400 contact.emailSendingFailed prints exactly as before.

direct-send get and direct-send cancel print Reply's bounce fields as bounced, bounce_type (Reply's word, as given) and bounced_at. Each field appears only when Reply returns it, so output against an older Reply is unchanged.

The send's help no longer says that a direct email goes outside the mailbox's daily limit. Reply now holds a direct email to that limit. The help lists the new codes. The README and the bundled skill (1.4.1) follow.

Why

Reply's API now refuses a direct email on the mailbox's daily limit, on the account's active contacts limit, and on a mailbox or team that cannot send. A caller needs to tell these apart: a limit is waited out, while a mailbox that cannot send needs a person. A caller also needs to see whether a sent email bounced.

How it was verified

  • npm run build is clean.
  • npm test passes: 1089 tests, 5 skipped.
  • New tests pin:
    • each code's shape and status gating;
    • one call with no retry, both with and without a Retry-After;
    • an email code arriving on a LinkedIn send not being remapped;
    • the bounce fields being present, absent or of the wrong type;
    • the help's sentences.

Two readers read the change. This pull request is followed by one that removes the hosted mailbox page fallback, opened against this branch. That one is merged into this branch first, so that both ship as one minor release.

…sent email bounced

contact send-email now maps Reply's refusals of a direct email on its limits:

- 429 contact.dailyLimitReached and contact.activeContactsLimitReached are
  email.limit_reached, with details.limit daily or active_contacts, Reply's
  Retry-After passed on as retry_after and reply_code kept, in the shape of
  linkedin.limit_reached. Both were rate_limited before.
- 403 contact.emailAccountSendingDisabled, a mailbox whose daily limit is 0
  or a team whose plan does not send, is email.sending_disabled, with no
  retry_after. It was access.denied before.
- An active contacts limit is never resent by the transport, like a daily
  or weekly one: no wait made inside one call clears it.

direct-send get and cancel add Reply's bounced, bounceType and bouncedAt as
bounced, bounce_type (Reply's word, as given) and bounced_at, each only when
Reply gives it, so an older Reply prints as before.

The send's help no longer says a direct email goes outside the mailbox's
daily limit, which Reply now holds it to.
…e is deprecated and ignored

Every Reply now issues one-mailbox email connection links, so the CLI no
longer falls back to the account user's hosted mailbox page, whose address
did not expire and let its holder manage all of the user's mailboxes.

- account connect and account reconnect on a Reply whose route answers 404
  with no code refuse with email_link.not_available, offering nothing else:
  "This Reply does not issue one-mailbox email connection links, so no link
  was made."
- account pending on such a Reply answers the same code and sentence;
  supported and unsupported_channels stay in its output, always true and
  empty.
- account connect --channel email without --provider is always a usage
  error; email_link.provider_required and shared_page.not_enabled are no
  longer answered, and link_kind is always connection_link.
- --allow-shared-page is deprecated: still accepted, ignored and hidden
  from the help, so a caller that passes it is not refused; a later
  release removes it. --provider on account reconnect, which only chose
  the hosted page's address, is ignored and hidden the same way.
The help of direct-send get and the README say, as Reply's behaviour and
not a check the CLI makes, that bounce_type and bounced_at are null while
bounced is false, and bounced_at null when the bounce carried no date. The
README paragraphs this branch touched are wrapped to 100 columns again.
… used

without_secrets, body_secrets, the secret_body option and their helpers served only the
removed hosted mailbox page, and a link answer no longer carries a bare url.
feat(account): print only one-mailbox email links; --allow-shared-page is deprecated and ignored
@ArtemKosolap
ArtemKosolap merged commit 566e3c2 into main Nov 21, 2026
6 checks passed
@ArtemKosolap
ArtemKosolap deleted the dev/REPLY-54421-email-limits-bounces branch November 21, 2026 03:26
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.

1 participant