[object Object]

← back to Sample Followup Sweep

sample-followup: drop the [REVIEW] subject prefix — flag lives in the run report only

9a219d87913115c60c99a7d52e6d37be1dbecbd2 · 2026-09-01 11:55:20 -0700 · Steve

Steve 9/01: the '[REVIEW — team emailed recently]' tag must never ride in the draft
subject (risk of reaching the vendor). Removed it from the subject; the recently-emailed
flag now shows ONLY in the console run report. Deleted + regenerated the 8 scoped drafts
with clean subjects.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 9a219d87913115c60c99a7d52e6d37be1dbecbd2
Author: Steve <steve@designerwallcoverings.com>
Date:   Tue Sep 1 11:55:20 2026 -0700

    sample-followup: drop the [REVIEW] subject prefix — flag lives in the run report only
    
    Steve 9/01: the '[REVIEW — team emailed recently]' tag must never ride in the draft
    subject (risk of reaching the vendor). Removed it from the subject; the recently-emailed
    flag now shows ONLY in the console run report. Deleted + regenerated the 8 scoped drafts
    with clean subjects.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 scripts/scheduled-run.mjs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scripts/scheduled-run.mjs b/scripts/scheduled-run.mjs
index 6c53eb3..bd0f50c 100644
--- a/scripts/scheduled-run.mjs
+++ b/scripts/scheduled-run.mjs
@@ -283,10 +283,9 @@ const run = async () => {
       if (!fresh.length) continue;                                   // already drafted — no dup
       await enrichRows(c.sample_email || c.main_email, fresh);       // vendor ref/tracking when they responded
       const draft = compose({ name: c.name, account_number: c.account_number, sample_email: c.sample_email, main_email: c.main_email, ship_to: SHIP_TO }, fresh.map((r) => ({ mfr: r.mfr, sku: r.sku, requested: r.requested, name: r.name, ref: r.ref })));
-      // Flag (subject-only, visible in the Drafts list) when the team already emailed this vendor. Strip
-      // the tag before sending — it's a review marker, not part of the vendor-facing letter.
-      const flagPrefix = recentlyEmailed ? '[REVIEW — team emailed recently] ' : '';
-      const res = await georgeDraft({ account: 'info', to: draft.to, subject: flagPrefix + draft.subject, body: draft.html });
+      // Steve 9/01: the "recently emailed" flag stays in the RUN REPORT only — never in the subject
+      // (it must not reach the vendor). The console still marks these drafts for review.
+      const res = await georgeDraft({ account: 'info', to: draft.to, subject: draft.subject, body: draft.html });
       if (res.ok) {
         for (const r of fresh) draftLedger[r.recordId] = today;      // dedup marker (NOT a FileMaker stamp)
         drafted.push({ vid, name: c.name, to: draft.to, n: fresh.length, draftId: res.id, confirm: !!c.needs_confirm, flagged: recentlyEmailed });

← 70ec596 sample-followup: add vendor Ref/Tracking + Pattern-Name colu  ·  back to Sample Followup Sweep  ·  auto-data-snapshot: 2026-09-01T12:16:45 (5 data files) — dat ea9f7d9 →