-
Notifications
You must be signed in to change notification settings - Fork 35
add 'fail all' command; update 'fail domain' and 'binding fail domain… #833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
juliebin
wants to merge
3
commits into
main
Choose a base branch
from
1152-command-fail
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| lastUpdated: "04/15/2026" | ||
| title: "fail all quiet" | ||
| description: "fail all quiet ec_console fail queued messages globally by meta or RFC822 header match without bounces --meta --header required filter" | ||
| --- | ||
|
|
||
| <a name="console_commands.fail_all_quiet"></a> | ||
|
|
||
| ## Name | ||
|
|
||
| fail all quiet — fail matching messages everywhere without generating bounces | ||
|
|
||
| ## Synopsis | ||
|
|
||
| `fail all quiet` `--meta` *`key`* *`value`* \| `--header` *`header_name`* *`header_line`* [ *`note`* … ] | ||
|
|
||
| ## Description | ||
|
|
||
| The **fail all quiet** command administratively fails queued messages **across every domain** (every active and delayed queue in the mail system) according to **filter** criteria. Unlike **fail domain quiet**, there is **no domain argument**—only messages matching the mandatory filter are failed. | ||
|
|
||
| **`--meta`** / **`--header`** matching follows the same rules as [**fail domain quiet** selective purge](/momentum/4/console-commands/fail-domain-quiet#fail_domain_quiet_selective). You must specify **exactly one** clause: either **`--meta`** or **`--header`**, never both. | ||
|
|
||
| Any tokens **after** the `--meta` / `--header` clause become the optional administrative failure *note*, joined like other purge commands. | ||
|
|
||
| Output reports how many matching messages were failed: | ||
|
|
||
| ``` | ||
| All domains purged. 742 messages failed. | ||
| ``` | ||
|
|
||
| <a name="fail_all_selective_notes"></a> | ||
|
|
||
| **Important:** **`--meta`** / **`--header`** filter is **required**. Running `fail all quiet` without a filter is rejected. Global header matching has the **same folded-header limitation** documented under [**physical header lines**](/momentum/4/console-commands/fail-domain-quiet#header_filter_physical_lines). | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| ecelerity> fail all quiet --meta mo_campaign_id end-of-sale | ||
| ``` | ||
|
|
||
| ``` | ||
| ecelerity> fail all quiet --header List-Unsubscribe mailto:list@example.com Purged obsolete campaign mail | ||
| ``` | ||
|
|
||
| ## See Also | ||
|
|
||
| [fail all](/momentum/4/console-commands/fail-all) · [fail domain quiet](/momentum/4/console-commands/fail-domain-quiet) · [binding fail domain quiet](/momentum/4/console-commands/binding-fail-domain-quiet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| lastUpdated: "04/15/2026" | ||
| title: "fail all" | ||
| description: "fail all ec_console globally fail queued messages matching --meta or --header filter bounce optional note" | ||
| --- | ||
|
|
||
| <a name="console_commands.fail_all"></a> | ||
|
|
||
| ## Name | ||
|
|
||
| fail all — fail matching messages everywhere with bounce behavior | ||
|
|
||
| ## Synopsis | ||
|
|
||
| `fail all` `--meta` *`key`* *`value`* \| `--header` *`header_name`* *`header_line`* [ *`note`* … ] | ||
|
|
||
| ## Description | ||
|
|
||
| The **fail all** command administratively fails queued messages **across every domain** (every active and delayed queue) according to **filter** criteria. Unlike **fail domain**, there is **no domain argument**—only messages matching the mandatory filter are failed. | ||
|
|
||
| Matching uses the same **`--meta`** / **`--header`** rules as [**fail domain quiet**](/momentum/4/console-commands/fail-domain-quiet#fail_domain_quiet_selective): **exactly one** clause, either **`--meta`** or **`--header`**. | ||
|
|
||
| When **fail all** is used (**not** **fail all quiet**), failed messages follow normal permanent-failure disposition (including bounce generation when Generate_Bounces is enabled), analogous to **fail domain** versus **fail domain quiet**. | ||
|
|
||
| Tokens after the filter clause are joined into an optional administrative failure *note*, same as other purge commands. | ||
|
|
||
| ``` | ||
| All domains purged. 742 messages failed. | ||
| ``` | ||
|
|
||
| <a name="fail_all_required_filter"></a> | ||
|
|
||
| **Important:** **`--meta`** / **`--header`** filter is **required**. Header matching observes the **physical-line** limitation described under [**folded headers**](/momentum/4/console-commands/fail-domain-quiet#header_filter_physical_lines). | ||
|
|
||
| ### Examples | ||
|
|
||
| ``` | ||
| ecelerity> fail all --header X-Ecconsole-Purge yes | ||
| ``` | ||
|
|
||
| ``` | ||
| ecelerity> fail all --meta tenant_id churned 554 Tenant removed — mail purged | ||
| ``` | ||
|
|
||
| ## See Also | ||
|
|
||
| [fail all quiet](/momentum/4/console-commands/fail-all-quiet) · [fail domain](/momentum/4/console-commands/fail-domain) · [binding fail domain](/momentum/4/console-commands/binding-fail-domain) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.