Skip to content

target/ignore_error: add wrapper target to ignore delivery errors - #863

Merged
foxcpp merged 1 commit into
foxcpp:devfrom
ChrisJr404:target-ignore-error
Oct 20, 2026
Merged

foxcpp merged 1 commit into
foxcpp:devfrom
ChrisJr404:target-ignore-error

Conversation

@ChrisJr404

Copy link
Copy Markdown

Implements #748.

Adds a target.ignore_error wrapper that runs an inner delivery target and turns any delivery error into a logged warning, so a non critical deliver_to copy (push notifications and similar, like #735) does not fail the rest of the pipeline.

The wrapped target is given inline, as in the issue example:

deliver_to ignore_error smtp tcp://127.0.0.1:2525

Any block attached to the directive is forwarded to the wrapped target as-is. Errors from every stage (StartDelivery, AddRcpt, Body, Commit) are logged and then discarded. If the wrapped target cannot be started at all the delivery becomes a no-op.

Comes with unit tests covering the passthrough and the ignored-error cases, plus a short reference page. Happy to switch to a target {} block form instead of the inline one if you prefer that.

@foxcpp foxcpp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@foxcpp
foxcpp merged commit 3aff5d1 into foxcpp:dev Oct 20, 2026
2 of 3 checks passed
@foxcpp

foxcpp commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants