Repository navigation
feat(direct-send): name a direct email's limits, and print whether a sent email bounced - #40
Merged
Merged
Conversation
…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.
…902-drop-shared-page
… 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.
…rovider and --allow-shared-page
ArtemKosolap
enabled auto-merge
November 21, 2026 03:22
feat(account): print only one-mailbox email links; --allow-shared-page is deprecated and ignored
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
contact send-emailnow names Reply's refusals of a direct email on its limits, instead of folding them into generic codes:429 contact.dailyLimitReachedand429 contact.activeContactsLimitReachedare one code,email.limit_reached. It has the same shape aslinkedin.limit_reached:details.limitisdailyoractive_contacts, Reply'sRetry-Afteris passed on asretry_after, andreply_codeis kept verbatim. Both wererate_limitedbefore.403 contact.emailAccountSendingDisabledisemail.sending_disabled. It is answered for a mailbox whose daily limit is 0, or a team whose plan does not send. It has noretry_after, and its sentence says that the mailbox or the team cannot send. It wasaccess.deniedbefore, which read as a sign-in problem.contact.activeContactsLimitReachedjoins the codes the transport never resends, like the daily and weekly limits: no wait inside one call clears it.400 contact.emailSendingFailedprints exactly as before.direct-send getanddirect-send cancelprint Reply's bounce fields asbounced,bounce_type(Reply's word, as given) andbounced_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 buildis clean.npm testpasses: 1089 tests, 5 skipped.Retry-After;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.