Skip to main content

stripBcc

@forge/monorepo


@forge/monorepo / backend/src / stripBcc

Function: stripBcc()

stripBcc(raw): string

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

Removes the Bcc header from a composed message.

For SMTP the envelope carries every recipient and the header must not, or each blind recipient can read the whole blind list — the single most embarrassing mail bug there is. The header is kept in the composed form so a preview can show it, and stripped at the transport that would otherwise leak it.

Parameters

raw

string

Returns

string