[geary/mjog/misc-criticals: 7/9] Geary.RFC822.MailboxAddresses: Use RFC822 GMime parser options



commit 52fdf3677ca9ded799ea87edf56b4b1590b93d78
Author: Michael Gratton <mike vee net>
Date:   Fri Jun 26 17:22:45 2020 +1000

    Geary.RFC822.MailboxAddresses: Use RFC822 GMime parser options
    
    Ensure the RFC822 package's parser options are used when parsing RFC822
    strings.

 src/engine/rfc822/rfc822-mailbox-addresses.vala | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/engine/rfc822/rfc822-mailbox-addresses.vala b/src/engine/rfc822/rfc822-mailbox-addresses.vala
index 40ba2462b..25591d893 100644
--- a/src/engine/rfc822/rfc822-mailbox-addresses.vala
+++ b/src/engine/rfc822/rfc822-mailbox-addresses.vala
@@ -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");
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]