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:
parent
9b4edf5726
commit
cc4389f41d
8 changed files with 144 additions and 77 deletions
|
|
@ -39,15 +39,11 @@ class Geary.ComposedEmailTest: TestCase {
|
|||
"Sender", "sender@example.com"
|
||||
);
|
||||
|
||||
return new Geary.ComposedEmail(
|
||||
var composed = new Geary.ComposedEmail(
|
||||
new GLib.DateTime.now_local(),
|
||||
new Geary.RFC822.MailboxAddresses.single(from),
|
||||
new Geary.RFC822.MailboxAddresses.single(to),
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
IMG_CONTAINING_HTML_BODY
|
||||
);
|
||||
new Geary.RFC822.MailboxAddresses.single(from)
|
||||
).set_to(new Geary.RFC822.MailboxAddresses.single(to));
|
||||
composed.body_html = IMG_CONTAINING_HTML_BODY;
|
||||
return composed;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue