refactor(mimefactory): separate rendering of message payload and sendable message

This change separates rendering into two separate steps:
1. Rendering of the message payload without the From, Date and Autocrypt headers.
2. Adding the From, Date and Autocrypt headers and possibly encrypting the message.

The goal is to have serializable result of the first step
that can be persisted in the database and sent later with any email address.
This way it will be possible to send queued messages over any relay.

This will make it possible not to remove all messages from the queue
when the sending relay is changed.
Currently changing `configured_addr` deletes everything from `smtp` table.

This change is however only a refactoring and does not implement any features.
This commit is contained in:
link2xt
2026-08-04 11:57:57 +00:00
committed by l
parent 487d33f4d7
commit 7990e17859
7 changed files with 768 additions and 621 deletions
+589 -388
View File
File diff suppressed because it is too large Load Diff