mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-01 00:13:37 +00:00
A draft's old version is removed by id when the composer saves over it, sends it or discards it. Email ids repeat across accounts and servers - the same user logged in to two servers is account `e` on both - so the removal must go to the login and account the draft lives in. Two paths took the wrong one: - "Edit draft" in an "All folders" search or a tag view took the account from the folder still selected underneath. With a group folder selected, an own draft was opened as the group's, and its first autosave, send or discard destroyed the message with that id in the group account, while the draft stayed in the own Drafts. It now takes the login and account the result is stamped with, reads the draft through that login, and prefers that login's identity when two logins share an address. - The composer discarded through the login of the current From, and replaced or sent through it too. After switching From to another login's identity - which saves nothing by itself - discarding, the next save or the send removed the draft's id on the other server. Each save now records the login it went through (a draft opened from a list starts with the list's). A version saved through another login is removed through that one: after the new version exists when saving, after the message is out when sending, and on discard. The Pro email view, folder tabs and search preview pass their login along with the draft.