Moved emails get deleted & duplicated
TL;DR: when an email is moved to a new folder outside evolution, upon starting evolution, the 'old' email is deleted, effectively resulting in duplicate mail.
I am using IMAP with Evolution 3.30.5-1.1 on Debian 10.
Scenario:
- Receive (any) mail
- Open evolution, fetch the new mail - it correctly shows in the inbox
- Close evolution
- Move this email with a different MUA from the inbox to a new folder (say Archive)
- Start evolution - after the syncing, evolution will see that the 'old' email from the inbox is no longer there and will delete it (i.e. move it to the Trash folder).
- The same email is now both in Archive and in Trash (not just locally, but also on the server)
Expected behaviour: when syncing, Evolution should treat the server as the ground truth. If this particular email is no longer present in the Inbox folder, it should just be deleted locally, and not moved to the Trash folder.
I have confirmed this behaviour also by creating a new folder - "Trash 2" and instructing Evolution to use it as the Trash folder. This experiment ruled out any 'funny' behaviour from the server.