Add outgoing mail attachments
Support multiple attachments in desktop and Android compose, persist them in drafts and offline queues, and include them in desktop OpenPGP protection. Update docs and tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+4
-4
@@ -54,11 +54,11 @@ A generation counter invalidates stale sync jobs when accounts are edited or rem
|
||||
|
||||
The send flow is also centralized in the main process:
|
||||
|
||||
- the renderer calls `mail:send`
|
||||
- the main process resolves the account, checks the sender settings, and applies OpenPGP encryption/signing before sending
|
||||
- the message is either transmitted immediately or queued as an offline send when connectivity is unavailable
|
||||
- the renderer calls the desktop `mail:send` IPC or the Android `EpMail.send` plugin with message fields and selected attachment bytes
|
||||
- the native send path resolves the account, checks sender settings, builds multipart MIME, and on desktop applies OpenPGP encryption/signing to the body and attachments before sending
|
||||
- the message is either transmitted immediately or queued as an offline send when connectivity is unavailable; local draft attachments are persisted with draft content
|
||||
|
||||
This prevents the renderer from silently bypassing critical security checks or storing plaintext in outbox data.
|
||||
The renderer sends file bytes rather than local paths. OpenPGP messages are encrypted before offline queueing so the outbox contains ciphertext instead of plaintext message or attachment content.
|
||||
|
||||
## 3. Security boundary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user