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 = {};
|
||||
for (const e of inlineEmojis) cidById[e.id] = e.cid;
|
||||
|
||||
const quoteHtml = buildQuoteHtml(quote);
|
||||
const htmlBody = `
|
||||
<div style="font-family: sans-serif; font-size: 14px; color: #333;">
|
||||
<p>${messageTextToHtml(cleanText, cidById)}</p>
|
||||
${safeStaffSigHtml ? `<p style="margin: 10px 0;">${safeStaffSigHtml}</p>` : ''}
|
||||
${buildCompanySigHtml()}
|
||||
${buildQuoteHtml(quote)}
|
||||
${quoteHtml ? `<br><br>${quoteHtml}` : ''}
|
||||
</div>`;
|
||||
|
||||
const plainBody = [discordEmojiToText(cleanText)];
|
||||
if (safeStaffSigText) plainBody.push('', safeStaffSigText);
|
||||
plainBody.push('', ...buildCompanySigText().split('\n'));
|
||||
const quoteText = buildQuoteText(quote);
|
||||
if (quoteText) plainBody.push('', quoteText);
|
||||
if (quoteText) plainBody.push('', '', quoteText);
|
||||
|
||||
const stamp = Date.now().toString(16);
|
||||
const altBoundary = 'alt_' + stamp;
|
||||
|
||||
Reference in New Issue
Block a user