Geary.RFC822.MailboxAddresses: Use RFC822 GMime parser options

Ensure the RFC822 package's parser options are used when parsing RFC822
strings.
This commit is contained in:
Michael Gratton 2020-06-26 17:22:45 +10:00
parent 8125ab8c3b
commit 52fdf3677c

View file

@ -83,7 +83,10 @@ public class Geary.RFC822.MailboxAddresses :
public MailboxAddresses.from_rfc822_string(string rfc822)
throws Error {
var list = GMime.InternetAddressList.parse(null, rfc822);
var list = GMime.InternetAddressList.parse(
Geary.RFC822.get_parser_options(),
rfc822
);
if (list == null) {
throw new Error.INVALID("Not a RFC822 mailbox address list");
}