Make Geary.ComposedEmail implement Geary.EmailHeaderSet

This allows it to be used in exchange with the Geary.Email and
RFC822.Message classes in places.
This commit is contained in:
Michael Gratton 2019-11-08 10:23:24 +11:00 committed by Michael James Gratton
parent 9b4edf5726
commit cc4389f41d
8 changed files with 144 additions and 77 deletions

View file

@ -121,14 +121,13 @@ class Integration.Smtp.ClientSession : TestCase {
Geary.RFC822.MailboxAddress to) {
Geary.ComposedEmail composed = new Geary.ComposedEmail(
new GLib.DateTime.now_local(),
new Geary.RFC822.MailboxAddresses.single(from),
new Geary.RFC822.MailboxAddresses.single(to),
null,
null,
"Geary integration test subject",
"Geary integration test message",
null
new Geary.RFC822.MailboxAddresses.single(from)
).set_to(
new Geary.RFC822.MailboxAddresses.single(to)
).set_subject(
"Geary integration test subject"
);
composed.body_text = "Geary integration test message";
return yield new Geary.RFC822.Message.from_composed_email(
composed,