Skip to content

sys_email.error description says "transport error" but the column now also carries pre-delivery rejections #14372

Description

@hotlong

Observation only — noticed while working #14318, deliberately not folded into that PR.

sys_email.error is declared in
packages/platform-objects/src/audit/sys-email.object.ts as:

Transport error message when status=failed

Since #14371 the column also carries the reason a message was
rejected before it reached a transport — EmailService.recordRejectedMessage writes a
status:'failed' row when normalizeMessage refuses the input (unsendable from, no
recipient, no subject, no body). The row's own text is prefixed
rejected before delivery: ... precisely so an operator is not sent to the SMTP host for a
message that never reached one, so nothing is currently misleading in the DATA — but the
field's declared description is now narrower than what the column holds, and that
description is what Studio shows as field help.

Not fixed in #14371 on purpose: widening it pulls packages/platform-objects into a diff
whose claimed file surface was plugin-email / plugin-auth, and into a different gate
family, for a one-line prose change.

Suggested fix: one line, e.g. "Why the message failed — a transport error, or the
validation that rejected it before delivery."

Related: #14318 · #14371

Blocked-by: #14318

Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions