[object Object]

← back to Pitch Guard

Send no_source_tag to George so customer emails skip the From-job banner

b5dbc8d5809a16d4b12b31a6b40e60b49987a75c · 2026-05-19 10:13:30 -0700 · Steve

Files touched

Diff

commit b5dbc8d5809a16d4b12b31a6b40e60b49987a75c
Author: Steve <steve@designerwallcoverings.com>
Date:   Tue May 19 10:13:30 2026 -0700

    Send no_source_tag to George so customer emails skip the From-job banner
---
 server.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server.js b/server.js
index 9e90fd2..edd3db6 100644
--- a/server.js
+++ b/server.js
@@ -331,7 +331,7 @@ app.post('/api/send', async (req, res) => {
         if (real.length) replyToMessageId = real[real.length - 1].id;
       } catch { /* fall back to plain threadId send */ }
     }
-    const payload = { account: ACCOUNT, to, subject, body, ...(threadId ? { threadId } : {}), ...(replyToMessageId ? { replyToMessageId } : {}) };
+    const payload = { account: ACCOUNT, to, subject, body, no_source_tag: true, ...(threadId ? { threadId } : {}), ...(replyToMessageId ? { replyToMessageId } : {}) };
     const sent = await george('/api/send', { method: 'POST', body: payload });
     res.json({ ok: true, sent });
   } catch (e) { res.status(e.status || 500).json({ error: e.message }); }
@@ -357,7 +357,7 @@ app.post('/api/followup/create', async (req, res) => {
     const { to, subject } = req.body || {};
     if (!to) return res.status(400).json({ error: 'to required' });
     const subj = /^re:/i.test(subject || '') ? subject : 'Re: ' + (subject || 'your inquiry');
-    const out = await george('/api/drafts', { method: 'POST', body: { account: ACCOUNT, to, subject: subj, body: FOLLOWUP_BODY } });
+    const out = await george('/api/drafts', { method: 'POST', body: { account: ACCOUNT, to, subject: subj, body: FOLLOWUP_BODY, no_source_tag: true } });
     candCache = null;        // invalidate so a rescan reflects the new draft
     draftsCache = null;
     res.json({ ok: true, draft: out });

← bfffaf9 Pitch panel: Edit/Preview HTML toggle + Open-as-page; strip  ·  back to Pitch Guard  ·  Followup scanner now auto-runs: warms on startup + daily, ca a2e4c2f →