Pass email to a contact harvester instance when persisting it

Add a ContactHarvester arg to ImapDB.Folder.create_or_merge_email and
call it on the resulting email. Add and update a new harvester
property to MinimalFolder and pass that in as needed.
This commit is contained in:
Michael Gratton 2019-06-10 08:54:05 +10:00 committed by Michael James Gratton
parent 65ab37938f
commit 03b5fcee8a
9 changed files with 52 additions and 5 deletions

View file

@ -83,6 +83,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(mock),
true,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);
@ -102,6 +103,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(mock),
true,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);
@ -121,6 +123,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(mock),
false,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);
@ -150,6 +153,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(mock),
true,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);
@ -200,6 +204,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(test),
true,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);
@ -233,6 +238,7 @@ class Geary.ImapDB.FolderTest : TestCase {
this.folder.create_or_merge_email_async.begin(
Collection.single(test),
true,
new MockContactHarvester(),
null,
(obj, ret) => { async_complete(ret); }
);