Skip to main content

boundaryFor

@retinue/monorepo


@retinue/monorepo / backend/src / boundaryFor

Function: boundaryFor()

boundaryFor(parts): string

Defined in: backend/src/toolkit/mime.ts:120

A boundary that depends only on the message.

Deterministic so email_compose_preview and email_send produce the same bytes, and content-derived so two different messages do not share one. The loop rules out the remaining case where the chosen boundary appears inside a part — astronomically unlikely with a hash, and cheaper to exclude than to reason about.

Parameters​

parts​

readonly string[]

Returns​

string