@letterstory/cli 0.177.68 → 0.177.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.mjs +2 -1
- package/lib/commands/outbound.mjs +11 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
91
91
|
|
|
92
92
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
93
|
-
export const VERSION = "0.177.
|
|
93
|
+
export const VERSION = "0.177.69";
|
|
94
94
|
|
|
95
95
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
96
96
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1812,6 +1812,7 @@ Mailers (the sending mailboxes):
|
|
|
1812
1812
|
mailers forward <mailer-id> (--to <email> | --clear) Forward replies to sequences to an address
|
|
1813
1813
|
mailers forwards <mailer-id> [--outcome forwarded|held|failed] [--limit <n>]
|
|
1814
1814
|
What forwarding forwarded or held, and why
|
|
1815
|
+
mailers test <mailer-id> --to <email> Send one test email (5 a mailer, 25 an org a day)
|
|
1815
1816
|
mailers warmup start|pause <mailer-id> Start / pause warming (14+ days; ready at score 85)
|
|
1816
1817
|
mailers limit <mailer-id> <per-day> Daily send limit, 0..500 (not while warming)
|
|
1817
1818
|
mailers retire <mailer-id> [--release-mailbox --yes] Disable a mailer; --release-mailbox also deletes
|
|
@@ -379,6 +379,10 @@ export const ARGS = {
|
|
|
379
379
|
outcome: { flag: "outcome", enum: ["pending", "forwarded", "held", "failed"] },
|
|
380
380
|
limit: { flag: "limit", type: "num" },
|
|
381
381
|
},
|
|
382
|
+
send_mailer_test: {
|
|
383
|
+
mailer_id: { positional: 0, label: "mailer-id", required: true },
|
|
384
|
+
to: { flag: "to", required: true },
|
|
385
|
+
},
|
|
382
386
|
set_mailer_forwarding: {
|
|
383
387
|
mailer_id: { positional: 0, label: "mailer-id", required: true },
|
|
384
388
|
forward_to: {
|
|
@@ -725,7 +729,7 @@ async function prospectsColumns(ctx, sub) {
|
|
|
725
729
|
}
|
|
726
730
|
}
|
|
727
731
|
|
|
728
|
-
const MAILERS_USAGE = `Usage: mailers <list|domains|domain|retry|quote|launch|move|messages|message|forward|forwards|warmup|limit|retire|suppressions>`;
|
|
732
|
+
const MAILERS_USAGE = `Usage: mailers <list|domains|domain|retry|quote|launch|move|messages|message|forward|forwards|test|warmup|limit|retire|suppressions>`;
|
|
729
733
|
|
|
730
734
|
export async function cmdMailers(ctx) {
|
|
731
735
|
const sub = ctx.positionals[0];
|
|
@@ -777,6 +781,12 @@ export async function cmdMailers(ctx) {
|
|
|
777
781
|
return run(rest, "set_mailer_forwarding", "Forwarding updated.");
|
|
778
782
|
case "forwards":
|
|
779
783
|
return run(rest, "list_mailer_forwards");
|
|
784
|
+
case "test":
|
|
785
|
+
return run(
|
|
786
|
+
rest,
|
|
787
|
+
"send_mailer_test",
|
|
788
|
+
(r) => `Test sent from ${r?.from ?? "the mailer"} to ${r?.to ?? "the address"}.`
|
|
789
|
+
);
|
|
780
790
|
case "warmup": {
|
|
781
791
|
const action = rest.positionals[0];
|
|
782
792
|
const inner = { ...rest, positionals: rest.positionals.slice(1) };
|