Add conversation threads and prepare 0.6.0

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-11-17 22:46:11 +02:00
co-authored by Copilot
parent 93ff651e9d
commit bb34eedb44
38 changed files with 532 additions and 23 deletions
+6
View File
@@ -202,6 +202,8 @@ registerIpcHandler('mail:save-draft', async (_event, input) => {
cc: String(input?.cc || '').slice(0, 4000),
subject: String(input?.subject || '').slice(0, 998),
text: String(input?.text || '').slice(0, 500000),
inReplyTo: String(input?.inReplyTo || '').slice(0, 254),
references: String(input?.references || '').slice(0, 900),
attachments: serializeOutgoingAttachments(normalizeOutgoingAttachments(input?.attachments)),
updatedAt: Date.now()
};
@@ -341,6 +343,8 @@ registerIpcHandler('mail:send', async (event, message) => {
text: message.text,
displayName: message.displayName,
messageId: message.messageId || `<${randomUUID()}@ep-mail.local>`,
inReplyTo: message.inReplyTo,
references: message.references,
attachments: message.attachments
};
const attachments = normalizeOutgoingAttachments(message?.attachments);
@@ -376,6 +380,8 @@ registerIpcHandler('mail:send', async (event, message) => {
subject: String(queuedMessage.subject || '(no subject)').slice(0, 998),
text: signature ? `${body}${body.trim() ? '\n\n' : ''}${signature}`.slice(0, 505000) : body,
messageId: queuedMessage.messageId,
inReplyTo: queuedMessage.inReplyTo,
references: queuedMessage.references,
encrypt: Boolean(pgpOptions.encrypt),
sign: Boolean(pgpOptions.sign),
passphrase: typeof pgpOptions.passphrase === 'string' && pgpOptions.passphrase ? pgpOptions.passphrase : null,