mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-02 16:15:39 +00:00
Moving mail into a shared account used `Email/copy` with `onSuccessDestroyOriginal`. Stalwart before 0.16.15 destroys the wrong id with it, and from 0.16.15 it destroys the source even when the copy failed, so a move refused for quota or a missing message deleted the original with no copy anywhere. The copy now runs without that flag, and the source is destroyed with a separate Email/set only after the copy was created. A failed destroy is reported, leaving a duplicate rather than a loss.