Geary.RFC822.MessageIdList: Update API to match MailboxAddresses

Make immutable, provide similar properties and accessors as
MailboxAddresses.
This commit is contained in:
Michael Gratton 2020-05-06 11:25:15 +10:00 committed by Michael James Gratton
parent 6aa5c2bfbd
commit 5b253cbee6
6 changed files with 48 additions and 25 deletions

View file

@ -100,7 +100,7 @@ This is the second line.
public void duplicate_message_id() throws Error {
Message dup = string_to_message(DUPLICATE_REFERENCES);
assert(dup.references.list.size == 2);
assert(dup.references.size == 2);
assert_message_id_list(
dup.references, "<1234@local.machine.example> <5678@local.machine.example>"
);