geary/test
Michael Gratton 9619d18eda Ensure conversations that have no email in the base folder are dropped
If a least one email in a conversation that is in the base folder but
also in another is removed from the base folder, the conversation may
not be removed from the monitor despite possibly not having any email
in the base folder, since the email may not have been completely removed
from the conversation.

This was particulary being seen with GMail accounts where even single
message conversations were not disappering when trashed because the
converation's email was still in All Mail.

This fix does a few things: Avoids hitting the database when checking
a conversation still has email in the base folder, when it does check
only ensures that email are in the base folder, not *any* folder, and
updates ConversationSet::remove_all_emails_by_identifier to do this
check iternally, clean up its API and implementation and avoids having
to use out args calling it.
2019-02-16 16:26:10 +11:00
..
client Only collapse runs of space, tab, carriage return, and newline 2019-01-14 19:54:14 -07:00
data Add a unit test for upgrading an actual Geary v0.6 database. 2018-05-19 14:55:19 +10:00
engine Ensure conversations that have no email in the base folder are dropped 2019-02-16 16:26:10 +11:00
js Fix select-quoting not preserving newlines in some cases 2019-02-02 15:07:41 +11:00
meson.build Add some unit tests for setting email flags 2019-02-13 18:41:49 +11:00
mock-object.vala Add a mock object mixin that can check call expectations on mocks. 2018-04-07 10:02:18 +10:00
test-case.vala Ensure conversations that have no email in the base folder are dropped 2019-02-16 16:26:10 +11:00
test-client.vala Move AccountManager and related objects into Accounts package. 2018-11-30 23:49:30 +11:00
test-engine.vala Add some unit tests for setting email flags 2019-02-13 18:41:49 +11:00