Email replies: add spacing between signature and quoted message
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -194,19 +194,20 @@ async function sendThreadedEmail(gmail, { threadId, recipient, encodedSubject, m
|
|||||||
const cidById = {};
|
const cidById = {};
|
||||||
for (const e of inlineEmojis) cidById[e.id] = e.cid;
|
for (const e of inlineEmojis) cidById[e.id] = e.cid;
|
||||||
|
|
||||||
|
const quoteHtml = buildQuoteHtml(quote);
|
||||||
const htmlBody = `
|
const htmlBody = `
|
||||||
<div style="font-family: sans-serif; font-size: 14px; color: #333;">
|
<div style="font-family: sans-serif; font-size: 14px; color: #333;">
|
||||||
<p>${messageTextToHtml(cleanText, cidById)}</p>
|
<p>${messageTextToHtml(cleanText, cidById)}</p>
|
||||||
${safeStaffSigHtml ? `<p style="margin: 10px 0;">${safeStaffSigHtml}</p>` : ''}
|
${safeStaffSigHtml ? `<p style="margin: 10px 0;">${safeStaffSigHtml}</p>` : ''}
|
||||||
${buildCompanySigHtml()}
|
${buildCompanySigHtml()}
|
||||||
${buildQuoteHtml(quote)}
|
${quoteHtml ? `<br><br>${quoteHtml}` : ''}
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
const plainBody = [discordEmojiToText(cleanText)];
|
const plainBody = [discordEmojiToText(cleanText)];
|
||||||
if (safeStaffSigText) plainBody.push('', safeStaffSigText);
|
if (safeStaffSigText) plainBody.push('', safeStaffSigText);
|
||||||
plainBody.push('', ...buildCompanySigText().split('\n'));
|
plainBody.push('', ...buildCompanySigText().split('\n'));
|
||||||
const quoteText = buildQuoteText(quote);
|
const quoteText = buildQuoteText(quote);
|
||||||
if (quoteText) plainBody.push('', quoteText);
|
if (quoteText) plainBody.push('', '', quoteText);
|
||||||
|
|
||||||
const stamp = Date.now().toString(16);
|
const stamp = Date.now().toString(16);
|
||||||
const altBoundary = 'alt_' + stamp;
|
const altBoundary = 'alt_' + stamp;
|
||||||
|
|||||||
Reference in New Issue
Block a user