[object Object]

← back to Dw Pitch Followup

auto-save: 2026-07-08T06:34:26 (1 files) — scripts/scan-unsubscribes.sh

e2ce4dcab749a4c1e6ba22347f42e05249065f47 · 2026-07-08 06:34:28 -0700 · Steve Abrams

Files touched

Diff

commit e2ce4dcab749a4c1e6ba22347f42e05249065f47
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jul 8 06:34:28 2026 -0700

    auto-save: 2026-07-08T06:34:26 (1 files) — scripts/scan-unsubscribes.sh
---
 scripts/scan-unsubscribes.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/scan-unsubscribes.sh b/scripts/scan-unsubscribes.sh
new file mode 100644
index 0000000..2e123cf
--- /dev/null
+++ b/scripts/scan-unsubscribes.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Auto-honor client UNSUBSCRIBE replies to info@ (CAN-SPAM compliance) on a schedule.
+# Hits the pitch-viewer's tightened scanner with ?apply=1 so genuine opt-outs are suppressed.
+# The scanner is conservative (replies TO info@, opt-out phrase at the START) so false
+# positives are unlikely; every run is logged so a mistake is auditable + reversible.
+LOG="$HOME/Library/Logs/dw-pitch-unsub-scan.log"
+RESP=$(curl -s --max-time 25 "http://127.0.0.1:9768/api/scan-unsubscribes?apply=1")
+echo "$(date '+%Y-%m-%dT%H:%M:%S')  $RESP" >> "$LOG"

← a9f7c6a CAN-SPAM: compliant footer (physical address 15442 Ventura B  ·  back to Dw Pitch Followup  ·  Schedule unsubscribe scan (launchd com.steve.dw-pitch-unsub- ee864df →