Fixes bug where messages marked for deletion still appear in message list
This fixes bug #10 (closed) (bugzilla 739627).
Messages that are marked for deletion (\DELETED) are not able to be archived (as explained in bug #10 (closed)). Most other mail clients, including Evolution and macOS Mail, will filter out \DELETED messages from display.
This patch makes it so when you query App.Conversation.get_emails
, where other filters are normally applied, deleted messages are also filtered out.
Also adds a new test in engine tests for this scenario.
Testing:
- Ran all engine and client tests. All passed.
- Tested on an iCloud IMAP account and my personally hosted Dovecot account by marking messages as \DELETED in mutt.