mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 00:07:01 +00:00
RFC 8621 puts the submission limits (`maxDelayedSend`, `submissionExtensions`) and the mail limits (`maxSizeAttachmentsPerEmail`) under each account's `accountCapabilities`. Stalwart advertises an empty object for them at session level, which is the only place the client looked, so scheduled send was refused, the undo-send delay silently fell back to an instant send, the Scheduled view listed nothing and the per-message attachment cap was never enforced. The client now reads these from the account that sends (the account's own submission capability, else the session's primary submission account, like the webmail), falling back to the session-level object for servers that only advertise it there. Quick reply, which can send from a shared account, now checks that account before holding the message for the undo-send delay.