Mail relay: review of 7d766b6 — R-1 to R-12, four mutations, two sentences
- R-1 a delivered token becomes the one in use only on 200 or a refusal given after authentication - R-2 a token of another site is refused by what /v1/status says (access-key field, scripts); docs for staging - R-3 the confirm route looks the nonce up first and counts only refused calls - R-4 one budget of time per message (10 s, 30 s with files), enrolment and retries included - R-5 'Disconnect' without the service's answer is not confirmed and keeps the token to try again - R-6 no enrolment without the confirm route in the config - R-7 half an SMTP set-up: one log line and a hint in the panel - R-8 to R-10, R-12 docs; R-11 the last failure stays in the state block - tests for redirect: manual, the candidate's nonce, the expectation taken back, one recipient only Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
0ee74ab2a4
commit
a2b07b1dc1
@@ -39,13 +39,20 @@ export type RelayOptions = {
|
||||
retryBackoffMs?: number
|
||||
/** The display name of outgoing mail. Default: the panel's "Sender name", else the site name. */
|
||||
senderName?: ((args: { payload: BasePayload }) => null | Promise<null | string | undefined> | string | undefined) | string
|
||||
/** One attempt of a send, in ms. Default 30 000 (a 10 MB attachment has to fit). */
|
||||
/** One attempt of a send, in ms. Default 30 000 (a 10 MB attachment has to fit); never more than what is left of `totalTimeoutMs`. */
|
||||
timeoutMs?: number
|
||||
/**
|
||||
* A token from elsewhere (a relay of your own, or a secret of your deployment). When set, the stored
|
||||
* token is not used and the site does not enrol.
|
||||
*/
|
||||
token?: (() => Promise<string | undefined> | string | undefined) | string
|
||||
/**
|
||||
* Everything one message may take, in ms — enrolment, attempts and waits together. Default 10 000, and
|
||||
* 30 000 for a message with files. A form's visitor waits for the mail, so a service that hangs must not
|
||||
* hold the request for the sum of the attempts. After it the message is reported ("not confirmed" when an
|
||||
* attempt was cut off). `{ plain, files }` sets the two apart; a job that nobody waits for may raise it.
|
||||
*/
|
||||
totalTimeoutMs?: { files?: number; plain?: number } | number
|
||||
/** Base address of the service. Default `https://webservices.intecion.net/mail`. A relay of your own speaks the same contract. */
|
||||
url?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user