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:
parent
8125ab8c3b
commit
52fdf3677c
1 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue